void bindToUnit(const GLuint unit) const
Bind the texture to an OpenGL texture unit as a GL_TEXTURE_2D.
void createTextureObject(const aiTextureMapMode &mapMode)
Texture(const std::string &path, const aiTextureMapping mapping, const unsigned int uvIndex, const float blend, const aiTextureOp textureOp, const aiTextureMapMode mapMode)
Constructor for creating a texture from a file.
GLuint getTextureObject() const
Returns the OpenGL texture ID.
Definition: Texture.h:92
bool createdTextureObject
True if the constructor has created the OpenGL texture object and the destructor should delete it lat...
Definition: Texture.h:99
const Image *const texture
The texture or NULL if the texture object has been created from an existing OpenGL texture...
Definition: Texture.h:97