List of all members.
Public Member Functions
-
bool isValid () const
- Check whether a valid texture ID is stored here.
-
override memsize_t memsize () const
- Ask how many bytes this object occupies.
-
operator bool () const
- Check whether a valid texture ID is stored here.
-
GLuint operator() (int i=0)
- On first access, OpenGL textures will be generated. This function must be called from within a valid OpenGL context.
-
GLuint operator() (int i=0) const
- Read-only access to the stored texture ID's. This function will NOT call any texture ID's.
-
TextureID (const MemCore::WeakPtr< MemCore::Creature > &C, GLenum textureUnit=0)
- The constructor does not yet create openGL textures yet. It is just a placeholder for deferred construction. Textures are created by the () access operator. As such, TextureID object can be created outside of an OpenGL context, but the access operator must be called within a valid one.
-
~TextureID ()
- Deletion of created OpenGL textures. Note that this destructor crashes if called outside a valid OpenGL context.
Protected Member Functions
-
void setMemsize (memsize_t nbytes, int i=0)
The documentation for this class was generated from the following file:
- ocean/GLvish/TextureID.hpp