virtual ~TextureData()
Virtual destructor.
Definition: TextureData.h:38
GLsizei getWidth() const
Gets the width of the texture.
Definition: TextureData.h:55
virtual TextureData & create(GLsizei width, GLsizei height, GLenum format=GL_RGBA, ImageDataPtr imageData=nullptr)
Creates a texture.
Definition: TextureData.cpp:14
virtual TextureData & load(const std::string &fileName)
Loads the texture from an image.
The underlying data of a texture.
Definition: TextureData.h:13
std::shared_ptr< GLubyte > ImageDataPtr
Definition: TextureData.h:8
ImageDataPtr getImageData() const
Gets the image data of the texture.
Definition: TextureData.h:67
GLsizei getHeight() const
Gets the height of the texture.
Definition: TextureData.h:59
TextureData()
Constructor.
Definition: TextureData.h:21
GLenum getFormat() const
Gets the format of the texture.
Definition: TextureData.h:63