OGRE  2.2.4
Object-Oriented Graphics Rendering Engine
Ogre::GLES2Texture Class Reference

#include <OgreGLES2Texture.h>

+ Inheritance diagram for Ogre::GLES2Texture:

Public Member Functions

 GLES2Texture (ResourceManager *creator, const String &name, ResourceHandle handle, const String &group, bool isManual, ManualResourceLoader *loader, GLES2Support &support)
 
virtual ~GLES2Texture ()
 
void createRenderTexture ()
 
v1::HardwarePixelBufferSharedPtr getBuffer (size_t face, size_t mipmap)
 Return hardware pixel buffer for a surface. More...
 
void getCustomAttribute (const String &name, void *pData)
 
GLenum getGLES2TextureTarget (void) const
 
GLuint getGLID () const
 

Constructor & Destructor Documentation

◆ GLES2Texture()

Ogre::GLES2Texture::GLES2Texture ( ResourceManager creator,
const String name,
ResourceHandle  handle,
const String group,
bool  isManual,
ManualResourceLoader loader,
GLES2Support support 
)

◆ ~GLES2Texture()

virtual Ogre::GLES2Texture::~GLES2Texture ( )
virtual

Member Function Documentation

◆ createRenderTexture()

void Ogre::GLES2Texture::createRenderTexture ( )

◆ getBuffer()

v1::HardwarePixelBufferSharedPtr Ogre::GLES2Texture::getBuffer ( size_t  face,
size_t  mipmap 
)

Return hardware pixel buffer for a surface.

This buffer can then be used to copy data from and to a particular level of the texture.

Parameters
faceFace number, in case of a cubemap texture. Must be 0 for other types of textures. For cubemaps, this is one of +X (0), -X (1), +Y (2), -Y (3), +Z (4), -Z (5)
mipmapMipmap level. This goes from 0 for the first, largest mipmap level to getNumMipmaps()-1 for the smallest.
Returns
A shared pointer to a hardware pixel buffer
Remarks
The buffer is invalidated when the resource is unloaded or destroyed. Do not use it after the lifetime of the containing texture.

◆ getCustomAttribute()

void Ogre::GLES2Texture::getCustomAttribute ( const String name,
void *  pData 
)

◆ getGLES2TextureTarget()

GLenum Ogre::GLES2Texture::getGLES2TextureTarget ( void  ) const

◆ getGLID()

GLuint Ogre::GLES2Texture::getGLID ( ) const
inline

The documentation for this class was generated from the following file: