#include <texture2d.h>
Inheritance diagram for kerosin::Texture2D:
Public Member Functions | |
Texture2D (const boost::shared_ptr< TextureServer > &textureServer) | |
~Texture2D () | |
virtual void | Bind () const |
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 |
enable the target associated with a texture type (e.g. GL_TEXTURE_2D) | |
virtual void | Disable () const |
disable the target associated with a texture type (e.g. GL_TEXTURE_2D) | |
virtual void | Clamp () const |
virtual void | ClampToEdge () const |
virtual void | Repeat () const |
void | Create (boost::shared_ptr< Image > &image) |
Definition at line 32 of file texture2d.h.
|
Definition at line 7 of file texture2d.cpp. |
|
Definition at line 11 of file texture2d.cpp. |
|
bind the texture contained in this object to the corresponding target (user code is responsible for setting correct enables and tex units)
Implements kerosin::Texture. Definition at line 15 of file texture2d.cpp. References kerosin::Texture::mTexID. Referenced by Create(). |
|
Implements kerosin::Texture. Definition at line 51 of file texture2d.cpp. |
|
Implements kerosin::Texture. Definition at line 57 of file texture2d.cpp. |
|
Definition at line 33 of file texture2d.cpp. References kerosin::Texture::Acquire(), Bind(), kerosin::Texture::mHeight, and kerosin::Texture::mWidth. Referenced by kerosin::TextureServer::GetTexture(). Here is the call graph for this function: ![]() |
|
disable the target associated with a texture type (e.g. GL_TEXTURE_2D)
Implements kerosin::Texture. Definition at line 28 of file texture2d.cpp. |
|
enable the target associated with a texture type (e.g. GL_TEXTURE_2D)
Implements kerosin::Texture. Definition at line 23 of file texture2d.cpp. |
|
Implements kerosin::Texture. Definition at line 63 of file texture2d.cpp. |