#include <opengltexture.h>
Inheritance diagram for CEGUI::OpenGLTexture:
Public Member Functions | |
virtual ushort | getWidth (void) const |
Returns the current pixel width of the texture. | |
virtual ushort | getHeight (void) const |
Returns the current pixel height of the texture. | |
virtual void | loadFromFile (const String &filename, const String &resourceGroup) |
Loads the specified image file into the texture. The texture is resized as required to hold the image. | |
virtual void | loadFromMemory (const void *buffPtr, uint buffWidth, uint buffHeight) |
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image. | |
GLuint | getOGLTexid (void) const |
Return a pointer to the internal texture id. | |
void | setOGLTextureSize (uint size) |
set the size of the internal texture. | |
Renderer * | getRenderer (void) const |
Return a pointer to the Renderer object that created and owns this Texture. | |
Friends | |
Texture * | OpenGLRenderer::createTexture (void) |
Texture * | OpenGLRenderer::createTexture (const String &filename, const String &resourceGroup) |
Texture * | OpenGLRenderer::createTexture (float size) |
void | OpenGLRenderer::destroyTexture (Texture *texture) |
Classes | |
struct | tImageTGA |
Definition at line 46 of file opengltexture.h.
|
Returns the current pixel height of the texture.
Implements CEGUI::Texture. Definition at line 82 of file opengltexture.h. |
|
Return a pointer to the internal texture id.
Definition at line 127 of file opengltexture.h. |
|
Return a pointer to the Renderer object that created and owns this Texture.
Definition at line 113 of file CEGUITexture.h. Referenced by CEGUI::Imageset::draw(), CEGUI::DirectX81Texture::loadFromFile(), CEGUI::DirectX9Texture::loadFromFile(), CEGUI::DirectX81Texture::loadFromMemory(), CEGUI::DirectX9Texture::loadFromMemory(), CEGUI::DirectX81Texture::setD3DTextureSize(), and CEGUI::DirectX9Texture::setD3DTextureSize(). |
|
Returns the current pixel width of the texture.
Implements CEGUI::Texture. Definition at line 72 of file opengltexture.h. |
|
Loads the specified image file into the texture. The texture is resized as required to hold the image.
Implements CEGUI::Texture. Definition at line 85 of file opengltexture.cpp. References CEGUI::DataContainer< T >::getDataPtr(), CEGUI::System::getResourceProvider(), CEGUI::System::getSingleton(), CEGUI::DataContainer< T >::getSize(), CEGUI::ResourceProvider::loadRawDataContainer(), and CEGUI::ResourceProvider::unloadRawDataContainer(). Referenced by CEGUI::OpenGLRenderer::createTexture(). |
|
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image.
Implements CEGUI::Texture. Definition at line 175 of file opengltexture.cpp. |
|
set the size of the internal texture.
Definition at line 188 of file opengltexture.cpp. Referenced by CEGUI::OpenGLRenderer::createTexture(). |
|
|
|
|
|
|
|
|