TextureUtilsGles.h#
↰ Parent directory (OpenGLES
)
Contains OpenGL ES specific Helper utilities.
Includes#
PVRCore/texture/Texture.h
PVRUtils/OpenGLES/BindingsGles.h
Included By#
Namespaces#
Classes#
Functions#
Source Code#
#pragma once
#if SC_ENABLED
#include "PVRUtils/OpenGLSC/BindingsGlsc.h"
#else
#include "PVRUtils/OpenGLES/BindingsGles.h"
#endif
#include "PVRCore/texture/Texture.h"
namespace pvr {
namespace utils {
struct TextureUploadResults
{
GLenum target;
GLuint image;
PixelFormat format;
bool isDecompressed;
TextureUploadResults() : target(0), image(0), isDecompressed(0) {}
~TextureUploadResults() {}
TextureUploadResults(TextureUploadResults&& rhs) : target(rhs.target), image(rhs.image), format(rhs.format), isDecompressed(rhs.isDecompressed)
{
rhs.target = 0;
rhs.image = 0;
}
private:
TextureUploadResults(const TextureUploadResults&);
};
TextureUploadResults textureUpload(const Texture& texture, bool isEs2, bool allowDecompress);
} // namespace utils
} // namespace pvr