#include <SceneTexture.h>
Inheritance diagram for peon::SceneTexture:
Public Member Functions | |
SceneTexture () | |
Constructor. | |
~SceneTexture () | |
Destructor. | |
bool | loadImage (const String &strFilename, bool bAlpha, bool bMipMaps, bool bRepeat) |
This method loads the image into this object and gets everything correctly configured for use in the pipeline. | |
GLuint | getTex () |
This method just returns the handle to our texture data. | |
Protected Member Functions | |
Uint32 | getPixel (SDL_Surface *surface, int x, int y) |
Method to scan the surface at particular coordinates to grab the pixel data. | |
Protected Attributes | |
GLuint | m_tex |
OpenGL-specific texture handle. |
Right now, it's a very simplistic container but to start with, that's all we need. It can handle any image format supported by the SDL_Image helper library. For the most part, I usually try to stick with BMP's, TGA's and PNG's.
|
Method to scan the surface at particular coordinates to grab the pixel data.
|
|
This method just returns the handle to our texture data.
|
|
This method loads the image into this object and gets everything correctly configured for use in the pipeline.
|