#include <texture.h>
Inheritance diagram for kerosin::Texture:
Public Member Functions | |
Texture (const boost::shared_ptr< TextureServer > &textureServer) | |
virtual | ~Texture () |
void | Reset () |
release the associated OpenGL texture | |
void | Acquire () |
acquire an OpenGL texture handle (texture not loaded) | |
virtual void | Bind () const =0 |
bind the texture contained in this object to the corresponding target (user code is responsible for setting correct enables and tex units) | |
virtual void | Enable () const =0 |
enable the target associated with a texture type (e.g. GL_TEXTURE_2D) | |
virtual void | Disable () const =0 |
disable the target associated with a texture type (e.g. GL_TEXTURE_2D) | |
virtual void | Clamp () const =0 |
virtual void | ClampToEdge () const =0 |
virtual void | Repeat () const =0 |
unsigned int | GetWidth () const |
unsigned int | GetHeight () const |
boost::shared_ptr< TextureServer > | GetTextureServer () const |
Protected Attributes | |
unsigned int | mTexID |
unsigned int | mWidth |
unsigned int | mHeight |
Private Attributes | |
boost::weak_ptr< TextureServer > | mTextureServer |
Definition at line 53 of file texture.h.
|
Definition at line 7 of file texture.cpp. |
|
Definition at line 12 of file texture.cpp. References Reset(). Here is the call graph for this function: ![]() |
|
acquire an OpenGL texture handle (texture not loaded)
Definition at line 26 of file texture.cpp. References mTexID, and Reset(). Referenced by kerosin::Texture2D::Create(). Here is the call graph for this function: ![]() |
|
bind the texture contained in this object to the corresponding target (user code is responsible for setting correct enables and tex units)
Implemented in kerosin::Texture2D. |
|
Implemented in kerosin::Texture2D. |
|
Implemented in kerosin::Texture2D. |
|
disable the target associated with a texture type (e.g. GL_TEXTURE_2D)
Implemented in kerosin::Texture2D. |
|
enable the target associated with a texture type (e.g. GL_TEXTURE_2D)
Implemented in kerosin::Texture2D. |
|
Definition at line 37 of file texture.cpp. References mHeight. |
|
Definition at line 42 of file texture.cpp. References mTextureServer. |
|
Definition at line 32 of file texture.cpp. References mWidth. |
|
Implemented in kerosin::Texture2D. |
|
release the associated OpenGL texture
Definition at line 17 of file texture.cpp. References mTexID. Referenced by Acquire(), and ~Texture(). |
|
Definition at line 89 of file texture.h. Referenced by kerosin::Texture2D::Create(), and GetHeight(). |
|
Definition at line 87 of file texture.h. Referenced by Acquire(), kerosin::Texture2D::Bind(), and Reset(). |
|
Definition at line 91 of file texture.h. Referenced by GetTextureServer(). |
|
Definition at line 88 of file texture.h. Referenced by kerosin::Texture2D::Create(), and GetWidth(). |