#include <OgreSDLTexture.h>
Inheritance diagram for Ogre::SDLTexture:

Public Methods | |
| SDLTexture (String name) | |
| virtual | ~SDLTexture () |
| void | load () |
| Loads the resource, if it is not already. More... | |
| void | loadImage (const Image &img) |
| Loads the data from an image. More... | |
| void | unload () |
| Unloads the resource, but retains data to recreate. More... | |
| void | blitToTexture (const Image &src, unsigned uStartX, unsigned uStartY) |
| Blits the contents of src on the texture. More... | |
| GLuint | getGLID () const |
| unsigned short | getNumMipMaps (void) |
| Gets the number of mipmaps to be used for this texture. More... | |
| void | setNumMipMaps (unsigned short num) |
| Sets the number of mipmaps to be used for this texture. More... | |
| float | getGamma (void) |
| Returns the gamma adjustment factor applied to this texture. More... | |
| void | setGamma (float g) |
| Sets the gamma adjustment factor applied to this texture. More... | |
| unsigned int | getHeight (void) |
| Returns the height of the texture. More... | |
| unsigned int | getWidth (void) |
| Returns the width of the texture. More... | |
| std::pair< uint, uint > | getDimensions () |
| Returns both the width and height of the texture. More... | |
| TextureUsage | getUsage () const |
| virtual void | blitImage (const Image &src, const Image::Rect imgRect, const Image::Rect texRect) |
| Blits a rect from an image to the texture. More... | |
| virtual void | copyToTexture (Texture *target) |
| Copies (and maybe scales to fit) the contents of this texture to another texture. More... | |
| void | enable32Bit (bool setting=true) |
| virtual PixelFormat | getFormat () const |
| Returns the pixel format for the texture surface. More... | |
| virtual bool | hasAlpha (void) |
| Returns true if the texture has an alpha layer. More... | |
| virtual size_t | getSize (void) |
| Retrieves info about the size of the resource. More... | |
| void | touch (void) |
| 'Touches' the resource to indicate it has been used. More... | |
| time_t | getLastAccess (void) const |
| Gets the last time the resource was 'touched'. More... | |
| const String & | getName (void) const |
| Gets resource name. More... | |
| bool | isLoaded (void) const |
| Returns true if the Resource has been loaded, false otherwise. More... | |
| virtual void | destroy () |
| A method to make the resource delete itself. More... | |
Protected Methods | |
| void | generateMipMaps (uchar *data) |
Protected Attributes | |
| unsigned long | mHeight |
| unsigned long | mWidth |
| unsigned short | mNumMipMaps |
| float | mGamma |
| PixelFormat | mFormat |
| TextureUsage | mUsage |
| unsigned short | mSrcBpp |
| unsigned long | mSrcWidth |
| unsigned long | mSrcHeight |
| unsigned short | mFinalBpp |
| bool | mHasAlpha |
| String | mName |
| bool | mIsLoaded |
| time_t | mLastAccess |
| size_t | mSize |
Private Attributes | |
| GLuint | mTextureID |
|
|
|
|
|
|
|
||||||||||||||||
|
Blits a rect from an image to the texture.
Reimplemented in Ogre::D3DTexture. |
|
||||||||||||||||
|
Blits the contents of src on the texture.
Implements Ogre::Texture. |
|
|
Copies (and maybe scales to fit) the contents of this texture to another texture.
Reimplemented in Ogre::D3DTexture. |
|
|
A method to make the resource delete itself.
|
|
|
|
|
|
|
|
|
Returns both the width and height of the texture.
|
|
|
Returns the pixel format for the texture surface.
|
|
|
Returns the gamma adjustment factor applied to this texture.
|
|
|
|
|
|
Returns the height of the texture.
|
|
|
Gets the last time the resource was 'touched'.
|
|
|
Gets resource name.
Reimplemented in Ogre::Material. |
|
|
Gets the number of mipmaps to be used for this texture.
|
|
|
Retrieves info about the size of the resource.
|
|
|
|
|
|
Returns the width of the texture.
|
|
|
Returns true if the texture has an alpha layer.
|
|
|
Returns true if the Resource has been loaded, false otherwise.
|
|
|
Loads the resource, if it is not already.
Implements Ogre::Resource. |
|
|
Loads the data from an image.
Implements Ogre::Texture. |
|
|
Sets the gamma adjustment factor applied to this texture.
|
|
|
Sets the number of mipmaps to be used for this texture.
|
|
|
'Touches' the resource to indicate it has been used.
|
|
|
Unloads the resource, but retains data to recreate.
Reimplemented from Ogre::Resource. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © 2002 by The OGRE Team