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

kerosin::TextureServer Class Reference

#include <textureserver.h>

Inheritance diagram for kerosin::TextureServer:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TextureServer ()
virtual ~TextureServer ()
boost::shared_ptr< OpenGLServerGetOpenGLServer () const
 retrieve pointer to the OpenGL server .
boost::shared_ptr< TextureGetTexture (const std::string &name)
 load (or returned cached) texture

Protected Member Functions

virtual void OnLink ()
 set up the OpenGLServer and ImageServer reference
virtual void OnUnlink ()
 reset OpenGLServer and ImageServer reference

Private Types

typedef std::map< std::string,
boost::shared_ptr< Texture > > 
TTextureCache

Private Attributes

boost::shared_ptr< OpenGLServermOpenGLServer
 reference to the OpenGLServer
boost::shared_ptr< ImageServermImageServer
 reference to the ImageServer
TTextureCache mTextureCache
 registry of cached textures

Detailed Description

Definition at line 63 of file textureserver.h.


Member Typedef Documentation

typedef std::map<std::string, boost::shared_ptr<Texture> > kerosin::TextureServer::TTextureCache [private]
 

Definition at line 72 of file textureserver.h.


Constructor & Destructor Documentation

TextureServer::TextureServer  ) 
 

Definition at line 33 of file textureserver.cpp.

TextureServer::~TextureServer  )  [virtual]
 

Definition at line 37 of file textureserver.cpp.


Member Function Documentation

boost::shared_ptr< OpenGLServer > TextureServer::GetOpenGLServer  )  const
 

retrieve pointer to the OpenGL server .

.. used by Textures to check extensions

Definition at line 70 of file textureserver.cpp.

References mOpenGLServer.

boost::shared_ptr< Texture > TextureServer::GetTexture const std::string &  name  ) 
 

load (or returned cached) texture

Definition at line 75 of file textureserver.cpp.

References kerosin::Texture2D::Create(), zeitgeist::Object::GetSelf(), mImageServer, and mTextureCache.

Here is the call graph for this function:

void TextureServer::OnLink  )  [protected, virtual]
 

set up the OpenGLServer and ImageServer reference

Reimplemented from zeitgeist::Leaf.

Definition at line 41 of file textureserver.cpp.

References zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), mImageServer, and mOpenGLServer.

Here is the call graph for this function:

void TextureServer::OnUnlink  )  [protected, virtual]
 

reset OpenGLServer and ImageServer reference

Reimplemented from zeitgeist::Leaf.

Definition at line 64 of file textureserver.cpp.

References mImageServer, and mOpenGLServer.


Member Data Documentation

boost::shared_ptr<ImageServer> kerosin::TextureServer::mImageServer [private]
 

reference to the ImageServer

Definition at line 104 of file textureserver.h.

Referenced by GetTexture(), OnLink(), and OnUnlink().

boost::shared_ptr<OpenGLServer> kerosin::TextureServer::mOpenGLServer [private]
 

reference to the OpenGLServer

Definition at line 101 of file textureserver.h.

Referenced by GetOpenGLServer(), OnLink(), and OnUnlink().

TTextureCache kerosin::TextureServer::mTextureCache [private]
 

registry of cached textures

Definition at line 107 of file textureserver.h.

Referenced by GetTexture().


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