#include <material2dtexture.h>
Inheritance diagram for kerosin::Material2DTexture:
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< Texture > | mTexDiffuse |
the diffuse texture | |
boost::shared_ptr< Texture > | mTexNormal |
the normal texture | |
boost::shared_ptr< Texture > | mTexSpecular |
the specular texture |
Definition at line 31 of file material2dtexture.h.
|
Definition at line 34 of file material2dtexture.cpp. |
|
Definition at line 38 of file material2dtexture.cpp. |
|
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: ![]() |
|
tries to load the texturee texName and stores a reference
Referenced by SetDiffuseTexture(), SetNormalTexture(), and SetSpecularTexture(). |
|
loads the diffuse texture
Definition at line 61 of file material2dtexture.cpp. References LoadTexture(), and mTexDiffuse. Here is the call graph for this function: ![]() |
|
loads the normal texture
Definition at line 66 of file material2dtexture.cpp. References LoadTexture(), and mTexNormal. Here is the call graph for this function: ![]() |
|
loads the specular texture
Definition at line 71 of file material2dtexture.cpp. References LoadTexture(), and mTexSpecular. Here is the call graph for this function: ![]() |
|
the diffuse texture
Definition at line 63 of file material2dtexture.h. Referenced by Bind(), and SetDiffuseTexture(). |
|
the normal texture
Definition at line 66 of file material2dtexture.h. Referenced by Bind(), and SetNormalTexture(). |
|
the specular texture
Definition at line 69 of file material2dtexture.h. Referenced by Bind(), and SetSpecularTexture(). |