Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

kerosin::Texture2D Class Reference

#include <texture2d.h>

Inheritance diagram for kerosin::Texture2D:

Inheritance graph
[legend]
Collaboration diagram for kerosin::Texture2D:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

Definition at line 32 of file texture2d.h.


Constructor & Destructor Documentation

Texture2D::Texture2D const boost::shared_ptr< TextureServer > &  textureServer  ) 
 

Definition at line 7 of file texture2d.cpp.

Texture2D::~Texture2D  ) 
 

Definition at line 11 of file texture2d.cpp.


Member Function Documentation

void Texture2D::Bind  )  const [virtual]
 

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().

void Texture2D::Clamp  )  const [virtual]
 

Implements kerosin::Texture.

Definition at line 51 of file texture2d.cpp.

void Texture2D::ClampToEdge  )  const [virtual]
 

Implements kerosin::Texture.

Definition at line 57 of file texture2d.cpp.

void Texture2D::Create boost::shared_ptr< Image > &  image  ) 
 

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:

void Texture2D::Disable  )  const [virtual]
 

disable the target associated with a texture type (e.g. GL_TEXTURE_2D)

Implements kerosin::Texture.

Definition at line 28 of file texture2d.cpp.

void Texture2D::Enable  )  const [virtual]
 

enable the target associated with a texture type (e.g. GL_TEXTURE_2D)

Implements kerosin::Texture.

Definition at line 23 of file texture2d.cpp.

void Texture2D::Repeat  )  const [virtual]
 

Implements kerosin::Texture.

Definition at line 63 of file texture2d.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:44:04 2006 for rcssserver3d by  doxygen 1.4.4