|
Basic Renderer
|
The underlying data of a texture. More...
#include <TextureData.h>
Public Member Functions | |
| TextureData () | |
| Constructor. More... | |
| TextureData (const std::string &fileName) | |
| Constructor. More... | |
| TextureData (GLsizei width, GLsizei height, GLenum format=GL_RGBA, ImageDataPtr imageData=nullptr) | |
| Constructor. More... | |
| virtual | ~TextureData () |
| Virtual destructor. More... | |
| virtual TextureData & | load (const std::string &fileName) |
| Loads the texture from an image. More... | |
| virtual TextureData & | create (GLsizei width, GLsizei height, GLenum format=GL_RGBA, ImageDataPtr imageData=nullptr) |
| Creates a texture. More... | |
| GLsizei | getWidth () const |
| Gets the width of the texture. More... | |
| GLsizei | getHeight () const |
| Gets the height of the texture. More... | |
| GLenum | getFormat () const |
| Gets the format of the texture. More... | |
| ImageDataPtr | getImageData () const |
| Gets the image data of the texture. More... | |
The underlying data of a texture.
|
inline |
Constructor.
| TextureData::TextureData | ( | const std::string & | fileName | ) |
Constructor.
| [in] | fileName | The name of the texture file |
| TextureData::TextureData | ( | GLsizei | width, |
| GLsizei | height, | ||
| GLenum | format = GL_RGBA, |
||
| ImageDataPtr | imageData = nullptr |
||
| ) |
Constructor.
| [in] | width | |
| [in] | height | |
| [in] | format | |
| [in] | imageData |
|
inlinevirtual |
Virtual destructor.
|
virtual |
Creates a texture.
| [in] | width | |
| [in] | height | |
| [in] | format | |
| [in] | imageData |
|
inline |
Gets the format of the texture.
|
inline |
Gets the height of the texture.
|
inline |
Gets the image data of the texture.
|
inline |
Gets the width of the texture.
|
virtual |
Loads the texture from an image.
| [in] | fileName | The name of the texture file |