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

kerosin::Material2DTexture Class Reference

#include <material2dtexture.h>

Inheritance diagram for kerosin::Material2DTexture:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Material2DTexture ()
virtual ~Material2DTexture ()
bool SetDiffuseTexture (const std::string &texName)
 loads the diffuse texture
bool SetNormalTexture (const std::string &texName)
 loads the normal texture
bool SetSpecularTexture (const std::string &texName)
 loads the specular texture
virtual void Bind ()
 binds the managed material, i.e.

Protected Member Functions

bool LoadTexture (const std::string &texName, boost::shared_ptr< Texture > &store)
 tries to load the texturee texName and stores a reference

Protected Attributes

boost::shared_ptr< TexturemTexDiffuse
 the diffuse texture
boost::shared_ptr< TexturemTexNormal
 the normal texture
boost::shared_ptr< TexturemTexSpecular
 the specular texture

Detailed Description

Definition at line 31 of file material2dtexture.h.


Constructor & Destructor Documentation

Material2DTexture::Material2DTexture  ) 
 

Definition at line 34 of file material2dtexture.cpp.

Material2DTexture::~Material2DTexture  )  [virtual]
 

Definition at line 38 of file material2dtexture.cpp.


Member Function Documentation

void Material2DTexture::Bind  )  [virtual]
 

binds the managed material, i.e.

sets all necessary OpenGL states

Reimplemented from kerosin::MaterialSolid.

Definition at line 76 of file material2dtexture.cpp.

References mTexDiffuse, mTexNormal, mTexSpecular, and kerosin::MaterialSolid::SetupMaterial().

Here is the call graph for this function:

bool kerosin::Material2DTexture::LoadTexture const std::string &  texName,
boost::shared_ptr< Texture > &  store
[protected]
 

tries to load the texturee texName and stores a reference

Referenced by SetDiffuseTexture(), SetNormalTexture(), and SetSpecularTexture().

bool Material2DTexture::SetDiffuseTexture const std::string &  texName  ) 
 

loads the diffuse texture

Definition at line 61 of file material2dtexture.cpp.

References LoadTexture(), and mTexDiffuse.

Here is the call graph for this function:

bool Material2DTexture::SetNormalTexture const std::string &  texName  ) 
 

loads the normal texture

Definition at line 66 of file material2dtexture.cpp.

References LoadTexture(), and mTexNormal.

Here is the call graph for this function:

bool Material2DTexture::SetSpecularTexture const std::string &  texName  ) 
 

loads the specular texture

Definition at line 71 of file material2dtexture.cpp.

References LoadTexture(), and mTexSpecular.

Here is the call graph for this function:


Member Data Documentation

boost::shared_ptr<Texture> kerosin::Material2DTexture::mTexDiffuse [protected]
 

the diffuse texture

Definition at line 63 of file material2dtexture.h.

Referenced by Bind(), and SetDiffuseTexture().

boost::shared_ptr<Texture> kerosin::Material2DTexture::mTexNormal [protected]
 

the normal texture

Definition at line 66 of file material2dtexture.h.

Referenced by Bind(), and SetNormalTexture().

boost::shared_ptr<Texture> kerosin::Material2DTexture::mTexSpecular [protected]
 

the specular texture

Definition at line 69 of file material2dtexture.h.

Referenced by Bind(), and SetSpecularTexture().


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