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

kerosin::Texture Class Reference

#include <texture.h>

Inheritance diagram for kerosin::Texture:

Inheritance graph
[legend]
List of all members.

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< TextureServerGetTextureServer () const

Protected Attributes

unsigned int mTexID
unsigned int mWidth
unsigned int mHeight

Private Attributes

boost::weak_ptr< TextureServermTextureServer

Detailed Description

Definition at line 53 of file texture.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file texture.cpp.

Texture::~Texture  )  [virtual]
 

Definition at line 12 of file texture.cpp.

References Reset().

Here is the call graph for this function:


Member Function Documentation

void Texture::Acquire  ) 
 

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:

virtual void kerosin::Texture::Bind  )  const [pure virtual]
 

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.

virtual void kerosin::Texture::Clamp  )  const [pure virtual]
 

Implemented in kerosin::Texture2D.

virtual void kerosin::Texture::ClampToEdge  )  const [pure virtual]
 

Implemented in kerosin::Texture2D.

virtual void kerosin::Texture::Disable  )  const [pure virtual]
 

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

Implemented in kerosin::Texture2D.

virtual void kerosin::Texture::Enable  )  const [pure virtual]
 

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

Implemented in kerosin::Texture2D.

unsigned int Texture::GetHeight  )  const
 

Definition at line 37 of file texture.cpp.

References mHeight.

boost::shared_ptr< TextureServer > Texture::GetTextureServer  )  const
 

Definition at line 42 of file texture.cpp.

References mTextureServer.

unsigned int Texture::GetWidth  )  const
 

Definition at line 32 of file texture.cpp.

References mWidth.

virtual void kerosin::Texture::Repeat  )  const [pure virtual]
 

Implemented in kerosin::Texture2D.

void Texture::Reset  ) 
 

release the associated OpenGL texture

Definition at line 17 of file texture.cpp.

References mTexID.

Referenced by Acquire(), and ~Texture().


Member Data Documentation

unsigned int kerosin::Texture::mHeight [protected]
 

Definition at line 89 of file texture.h.

Referenced by kerosin::Texture2D::Create(), and GetHeight().

unsigned int kerosin::Texture::mTexID [protected]
 

Definition at line 87 of file texture.h.

Referenced by Acquire(), kerosin::Texture2D::Bind(), and Reset().

boost::weak_ptr<TextureServer> kerosin::Texture::mTextureServer [private]
 

Definition at line 91 of file texture.h.

Referenced by GetTextureServer().

unsigned int kerosin::Texture::mWidth [protected]
 

Definition at line 88 of file texture.h.

Referenced by kerosin::Texture2D::Create(), and GetWidth().


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