This class represents a texture loaded into video memory. More...
#include <texture.h>
Public Member Functions | |||
Texture (Ogre::TexturePtr InternalTexture) | |||
Class Constructor. | |||
~Texture () | |||
Class Destructor. | |||
Ogre::TexturePtr | _GetInternalTexture () const | ||
Gets the internal Texture pointer. More... | |||
Whole | _ReadFromBuffer (UInt8 *DestBuffer, const Whole BufferSize) | ||
Reads from the internal buffer and populates the provided buffer with the texture data.
| |||
void | _WriteToBuffer (UInt8 *SrcBuffer, const Whole BufferSize, const Graphics::PixelFormat SrcFormat) | ||
Writes to the textures internal buffer.
| |||
Graphics::PixelFormat | GetFormat () const | ||
Gets the pixel format of this Texture. More... | |||
const String & | GetGroup () const | ||
Gets the resource group this Texture belongs to. More... | |||
const String & | GetName () const | ||
Gets the Name of this Texture. More... | |||
Whole | GetNumMipMaps () const | ||
Gets the number of MipMaps that exist for this Texture. More... | |||
UInt32 | GetOriginalDepth () const | ||
Gets the depth of the source Texture in pixels. More... | |||
UInt32 | GetOriginalHeight () const | ||
Gets the height of the source Texture in pixels. More... | |||
UInt32 | GetOriginalWidth () const | ||
Gets the width of the source Texture in pixels. More... | |||
Whole | GetSize () const | ||
Gets the size of this Texture. More... | |||
Protected Attributes | |
InternalTextureData * | ITD |
A pointer to the internal implementation of the Texture. More... | |
Ogre::TexturePtr Mezzanine::Graphics::Texture::_GetInternalTexture | ( | ) | const |
Gets the internal Texture pointer.
Definition at line 161 of file texture.cpp.
Reads from the internal buffer and populates the provided buffer with the texture data.
If | the size of the provided buffer is smaller than this texture, a PARAMETERS_EXCEPTION will be thrown. |
DestBuffer | The buffer to be written to. |
BufferSize | The size of the buffer provided. |
Definition at line 115 of file texture.cpp.
void Mezzanine::Graphics::Texture::_WriteToBuffer | ( | UInt8 * | SrcBuffer, |
const Whole | BufferSize, | ||
const Graphics::PixelFormat | SrcFormat | ||
) |
Writes to the textures internal buffer.
If | the size of this texture is smaller than the buffer being written, a PARAMETERS_EXCEPTION will be thrown. |
SrcBuffer | The buffer containing the pixel data to be written. |
BufferSize | The size of the buffer being written. |
SrcFormat | The pixel format of the texture in the source buffer. Pixel format will automatically be converted to the set format of this texture. |
Definition at line 138 of file texture.cpp.
Graphics::PixelFormat Mezzanine::Graphics::Texture::GetFormat | ( | ) | const |
Gets the pixel format of this Texture.
Definition at line 94 of file texture.cpp.
const String & Mezzanine::Graphics::Texture::GetGroup | ( | ) | const |
Gets the resource group this Texture belongs to.
Definition at line 109 of file texture.cpp.
const String & Mezzanine::Graphics::Texture::GetName | ( | ) | const |
Whole Mezzanine::Graphics::Texture::GetNumMipMaps | ( | ) | const |
Gets the number of MipMaps that exist for this Texture.
Definition at line 97 of file texture.cpp.
UInt32 Mezzanine::Graphics::Texture::GetOriginalDepth | ( | ) | const |
Gets the depth of the source Texture in pixels.
Definition at line 91 of file texture.cpp.
UInt32 Mezzanine::Graphics::Texture::GetOriginalHeight | ( | ) | const |
Gets the height of the source Texture in pixels.
Definition at line 88 of file texture.cpp.
UInt32 Mezzanine::Graphics::Texture::GetOriginalWidth | ( | ) | const |
Gets the width of the source Texture in pixels.
Definition at line 85 of file texture.cpp.
Whole Mezzanine::Graphics::Texture::GetSize | ( | ) | const |
Gets the size of this Texture.
Definition at line 100 of file texture.cpp.
|
protected |