class Mosaic::Id |
A pointer-semantics object representing a single texture.
A pointer-semantics object representing a single texture. Must be explicitly allocated and returned.This is a very low-level class, containing simply the GLuint texture object identifier.
Id () Create a new texture id object. | |
~Id () Destroy a texture id - note that the OpenGL texture itself is NOT deallocated by this. | |
void | alloc () Change this texture id to a newly allocated OpenGL texture id |
void | free () Free the OpenGL texture object referred to by this object. |
void | bind (GLenum target = GL_TEXTURE_2D) const Cause OpenGL to bind this texture |
bool | operator== (const Id &t) const Compare two Ids -- usual semantics |
bool | operator!= (const Id &t) const Compare two Ids -- usual semantics |
bool | isGood () True if this id is allocated. |
GLuint | getTexId () Break encapsulation for JNI ;) |
Alphabetic index Hierarchy of classes