Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CEGUI::OpenGLTexture Class Reference

Texture class that is created by OpenGLRenderer objects. More...

#include <opengltexture.h>

Inheritance diagram for CEGUI::OpenGLTexture:

Inheritance graph
[legend]
Collaboration diagram for CEGUI::OpenGLTexture:

Collaboration graph
[legend]
List of all members.

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.
RenderergetRenderer (void) const
 Return a pointer to the Renderer object that created and owns this Texture.

Friends

TextureOpenGLRenderer::createTexture (void)
TextureOpenGLRenderer::createTexture (const String &filename, const String &resourceGroup)
TextureOpenGLRenderer::createTexture (float size)
void OpenGLRenderer::destroyTexture (Texture *texture)

Classes

struct  tImageTGA

Detailed Description

Texture class that is created by OpenGLRenderer objects.

Definition at line 46 of file opengltexture.h.


Member Function Documentation

virtual ushort CEGUI::OpenGLTexture::getHeight void   )  const [inline, virtual]
 

Returns the current pixel height of the texture.

Returns:
ushort value that is the current height of the texture in pixels

Implements CEGUI::Texture.

Definition at line 82 of file opengltexture.h.

GLuint CEGUI::OpenGLTexture::getOGLTexid void   )  const [inline]
 

Return a pointer to the internal texture id.

Returns:
Texture id that is loaded

Definition at line 127 of file opengltexture.h.

Renderer* CEGUI::Texture::getRenderer void   )  const [inline, inherited]
 

Return a pointer to the Renderer object that created and owns this Texture.

Returns:
Pointer to the Renderer object that owns the 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().

virtual ushort CEGUI::OpenGLTexture::getWidth void   )  const [inline, virtual]
 

Returns the current pixel width of the texture.

Returns:
ushort value that is the current width of the texture in pixels

Implements CEGUI::Texture.

Definition at line 72 of file opengltexture.h.

void CEGUI::OpenGLTexture::loadFromFile const String filename,
const String resourceGroup
[virtual]
 

Loads the specified image file into the texture. The texture is resized as required to hold the image.

Parameters:
filename The filename of the image file that is to be loaded into the texture
resourceGroup Resource group identifier passed to the resource provider.
Returns:
Nothing.

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().

void CEGUI::OpenGLTexture::loadFromMemory const void *  buffPtr,
uint  buffWidth,
uint  buffHeight
[virtual]
 

Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image.

Parameters:
buffPtr Pointer to the buffer containing the image data
buffWidth Width of the buffer (in 0xAARRGGBB pixels)
buffHeight Height of the buffer (in 0xAARRGGBB pixels)
Returns:
Nothing.

Implements CEGUI::Texture.

Definition at line 175 of file opengltexture.cpp.

void CEGUI::OpenGLTexture::setOGLTextureSize uint  size  ) 
 

set the size of the internal texture.

Parameters:
size pixel size of the new internal texture. This will be rounded up to a power of 2.
Returns:
Nothing.

Definition at line 188 of file opengltexture.cpp.

Referenced by CEGUI::OpenGLRenderer::createTexture().


Friends And Related Function Documentation

Texture* OpenGLRenderer::createTexture float  size  )  [friend]
 

Texture* OpenGLRenderer::createTexture const String filename,
const String resourceGroup
[friend]
 

Texture* OpenGLRenderer::createTexture void   )  [friend]
 

void OpenGLRenderer::destroyTexture Texture texture  )  [friend]
 


The documentation for this class was generated from the following files:
Generated on Wed Sep 7 10:10:27 2005 for Crazy Eddies GUI System by  doxygen 1.4.3