|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CInstanceMaterialUser Class ReferenceUInstanceMaterial implementation.
More...
#include <instance_material_user.h>
Inheritance diagram for NL3D::CInstanceMaterialUser:
List of all members.
Public Methods |
| CInstanceMaterialUser (CMeshBaseInstance *mbi, CMaterial *mat, CAsyncTextureBlock *asyncTextBlock) |
| Constructor. More...
|
virtual | ~CInstanceMaterialUser () |
| dtor. More...
|
virtual void | emptyTexture (uint stage=0) |
virtual sint | getLastTextureStage () const |
| Get the last stage that got a texture. -1 means there is no textures. More...
|
CMaterial * | getMaterial () const |
|
virtual bool | isLighted () const |
virtual bool | isUserColor () const |
|
virtual void | setEmissive (CRGBA emissive=CRGBA(0, 0, 0)) |
| Set the emissive part ot material. Usefull only if isLighted(). More...
|
virtual void | setAmbient (CRGBA ambient=CRGBA(0, 0, 0)) |
| Set the Ambient part ot material. Usefull only if isLighted(). More...
|
virtual void | setDiffuse (CRGBA diffuse=CRGBA(0, 0, 0)) |
| Set the Diffuse part ot material. Usefull only if isLighted(). More...
|
virtual void | setOpacity (uint8 opa) |
| Set the Opacity part ot material. Usefull only if isLighted(). More...
|
virtual void | setSpecular (CRGBA specular=CRGBA(0, 0, 0)) |
| Set the specular part ot material. Usefull only if isLighted(). More...
|
virtual void | setShininess (float shininess) |
| Set the shininess part ot material. Usefull only if isLighted(). More...
|
virtual CRGBA | getEmissive () const |
virtual CRGBA | getAmbient () const |
virtual CRGBA | getDiffuse () const |
| return diffuse part. NB: A==opacity. More...
|
virtual uint8 | getOpacity () const |
virtual CRGBA | getSpecular () const |
virtual float | getShininess () const |
|
virtual void | setColor (CRGBA rgba) |
virtual CRGBA | getColor (void) const |
|
virtual void | setUserColor (CRGBA userColor) |
virtual CRGBA | getUserColor () const |
|
virtual void | setConstantColor (uint stage, NLMISC::CRGBA color) |
virtual NLMISC::CRGBA | getConstantColor (uint stage) const |
|
virtual bool | isTextureFile (uint stage=0) const |
| Check wether the texture of the n-th stage is a texture file. More...
|
virtual std::string | getTextureFileName (uint stage=0) const |
| Get the fileName used by the n-th texture file. (must be a texture file or an assertion is raised). More...
|
virtual void | setTextureFileName (const std::string &fileName, uint stage=0) |
| Set the fileName used by the n-th texture file. More...
|
|
virtual void | setBlend (bool active) |
virtual void | setBlendFunc (TBlend src, TBlend dst) |
virtual void | setSrcBlend (TBlend val) |
virtual void | setDstBlend (TBlend val) |
virtual bool | getBlend () const |
virtual TBlend | getSrcBlend (void) const |
virtual TBlend | getDstBlend (void) const |
|
virtual void | enableUserTexMat (uint stage, bool enabled=true) |
virtual bool | isUserTexMatEnabled (uint stage) const |
virtual void | setUserTexMat (uint stage, const NLMISC::CMatrix &m) |
| Set a new texture matrix for the given stage. More...
|
virtual const NLMISC::CMatrix & | getUserTexMat (uint stage) const |
| Get a const ref. More...
|
Private Attributes |
CMeshBaseInstance * | _MBI |
CMaterial * | _Material |
CAsyncTextureBlock * | _AsyncTextureBlock |
Detailed Description
UInstanceMaterial implementation.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 53 of file instance_material_user.h.
Constructor & Destructor Documentation
virtual NL3D::CInstanceMaterialUser::~CInstanceMaterialUser |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
void NL3D::CInstanceMaterialUser::emptyTexture |
( |
uint |
stage = 0 |
) |
[virtual] |
|
virtual void NL3D::CInstanceMaterialUser::enableUserTexMat |
( |
uint |
stage, |
|
|
bool |
enabled = true |
|
) |
[inline, virtual] |
|
virtual CRGBA NL3D::CInstanceMaterialUser::getAmbient |
( |
|
) |
const [inline, virtual] |
|
virtual bool NL3D::CInstanceMaterialUser::getBlend |
( |
|
) |
const [inline, virtual] |
|
virtual CRGBA NL3D::CInstanceMaterialUser::getColor |
( |
void |
|
) |
const [inline, virtual] |
|
virtual NLMISC::CRGBA NL3D::CInstanceMaterialUser::getConstantColor |
( |
uint |
stage |
) |
const [inline, virtual] |
|
virtual CRGBA NL3D::CInstanceMaterialUser::getDiffuse |
( |
|
) |
const [inline, virtual] |
|
virtual TBlend NL3D::CInstanceMaterialUser::getDstBlend |
( |
void |
|
) |
const [inline, virtual] |
|
virtual CRGBA NL3D::CInstanceMaterialUser::getEmissive |
( |
|
) |
const [inline, virtual] |
|
virtual sint NL3D::CInstanceMaterialUser::getLastTextureStage |
( |
|
) |
const [inline, virtual] |
|
CMaterial* NL3D::CInstanceMaterialUser::getMaterial |
( |
|
) |
const [inline] |
|
virtual uint8 NL3D::CInstanceMaterialUser::getOpacity |
( |
|
) |
const [inline, virtual] |
|
virtual float NL3D::CInstanceMaterialUser::getShininess |
( |
|
) |
const [inline, virtual] |
|
virtual CRGBA NL3D::CInstanceMaterialUser::getSpecular |
( |
|
) |
const [inline, virtual] |
|
virtual TBlend NL3D::CInstanceMaterialUser::getSrcBlend |
( |
void |
|
) |
const [inline, virtual] |
|
std::string NL3D::CInstanceMaterialUser::getTextureFileName |
( |
uint |
stage = 0 |
) |
const [virtual] |
|
virtual CRGBA NL3D::CInstanceMaterialUser::getUserColor |
( |
|
) |
const [inline, virtual] |
|
virtual const NLMISC::CMatrix& NL3D::CInstanceMaterialUser::getUserTexMat |
( |
uint |
stage |
) |
const [inline, virtual] |
|
virtual bool NL3D::CInstanceMaterialUser::isLighted |
( |
|
) |
const [inline, virtual] |
|
bool NL3D::CInstanceMaterialUser::isTextureFile |
( |
uint |
stage = 0 |
) |
const [virtual] |
|
virtual bool NL3D::CInstanceMaterialUser::isUserColor |
( |
|
) |
const [inline, virtual] |
|
virtual bool NL3D::CInstanceMaterialUser::isUserTexMatEnabled |
( |
uint |
stage |
) |
const [inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setAmbient |
( |
CRGBA |
ambient = CRGBA(0, 0, 0) |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setBlend |
( |
bool |
active |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setBlendFunc |
( |
TBlend |
src, |
|
|
TBlend |
dst |
|
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setColor |
( |
CRGBA |
rgba |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setConstantColor |
( |
uint |
stage, |
|
|
NLMISC::CRGBA |
color |
|
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setDiffuse |
( |
CRGBA |
diffuse = CRGBA(0, 0, 0) |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setDstBlend |
( |
TBlend |
val |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setEmissive |
( |
CRGBA |
emissive = CRGBA(0, 0, 0) |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setOpacity |
( |
uint8 |
opa |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setShininess |
( |
float |
shininess |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setSpecular |
( |
CRGBA |
specular = CRGBA(0, 0, 0) |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setSrcBlend |
( |
TBlend |
val |
) |
[inline, virtual] |
|
void NL3D::CInstanceMaterialUser::setTextureFileName |
( |
const std::string & |
fileName, |
|
|
uint |
stage = 0 |
|
) |
[virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setUserColor |
( |
CRGBA |
userColor |
) |
[inline, virtual] |
|
virtual void NL3D::CInstanceMaterialUser::setUserTexMat |
( |
uint |
stage, |
|
|
const NLMISC::CMatrix & |
m |
|
) |
[inline, virtual] |
|
Member Data Documentation
CMaterial* NL3D::CInstanceMaterialUser::_Material [private]
|
|
|
Definition at line 335 of file instance_material_user.h.
Referenced by CInstanceMaterialUser, emptyTexture, enableUserTexMat, getAmbient, getBlend, getColor, getConstantColor, getDiffuse, getDstBlend, getEmissive, getLastTextureStage, getMaterial, getOpacity, getShininess, getSpecular, getSrcBlend, getTextureFileName, getUserColor, getUserTexMat, isLighted, isTextureFile, isUserColor, isUserTexMatEnabled, setAmbient, setBlend, setBlendFunc, setColor, setConstantColor, setDiffuse, setDstBlend, setEmissive, setOpacity, setShininess, setSpecular, setSrcBlend, setTextureFileName, setUserColor, and setUserTexMat. |
The documentation for this class was generated from the following files:
|
|