|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::UInstanceMaterial Class ReferenceBase interface for manipulating Material retrieved from UInstance.
More...
#include <u_instance_material.h>
Inheritance diagram for NL3D::UInstanceMaterial:
List of all members.
Public Types |
enum | TBlend {
one = 0,
zero,
srcalpha,
invsrcalpha,
srccolor,
invsrccolor,
blendCount
} |
Public Methods |
|
virtual bool | isLighted () const=0 |
virtual bool | isUserColor () const=0 |
|
virtual void | setBlend (bool active)=0 |
virtual void | setBlendFunc (TBlend src, TBlend dst)=0 |
virtual void | setSrcBlend (TBlend val)=0 |
virtual void | setDstBlend (TBlend val)=0 |
virtual bool | getBlend () const=0 |
virtual TBlend | getSrcBlend (void) const=0 |
virtual TBlend | getDstBlend (void) const=0 |
|
virtual void | setEmissive (CRGBA emissive=CRGBA(0, 0, 0))=0 |
| Set the emissive part ot material. Usefull only if isLighted(). More...
|
virtual void | setAmbient (CRGBA ambient=CRGBA(0, 0, 0))=0 |
| Set the Ambient part ot material. Usefull only if isLighted(). More...
|
virtual void | setDiffuse (CRGBA diffuse=CRGBA(0, 0, 0))=0 |
| Set the Diffuse part ot material. Usefull only if isLighted(). More...
|
virtual void | setOpacity (uint8 opa)=0 |
| Set the Opacity part ot material. Usefull only if isLighted(). More...
|
virtual void | setSpecular (CRGBA specular=CRGBA(0, 0, 0))=0 |
| Set the specular part ot material. Usefull only if isLighted(). More...
|
virtual void | setShininess (float shininess)=0 |
| Set the shininess part ot material. Usefull only if isLighted(). More...
|
virtual CRGBA | getEmissive () const=0 |
virtual CRGBA | getAmbient () const=0 |
virtual CRGBA | getDiffuse () const=0 |
| return diffuse part. NB: A==opacity. More...
|
virtual uint8 | getOpacity () const=0 |
virtual CRGBA | getSpecular () const=0 |
virtual float | getShininess () const=0 |
|
virtual void | setColor (CRGBA rgba)=0 |
virtual CRGBA | getColor (void) const=0 |
|
virtual void | setConstantColor (uint stage, NLMISC::CRGBA color)=0 |
virtual NLMISC::CRGBA | getConstantColor (uint stage) const=0 |
|
virtual void | setUserColor (CRGBA userColor)=0 |
virtual CRGBA | getUserColor () const=0 |
|
virtual sint | getLastTextureStage () const=0 |
| Get the last stage that got a texture. -1 means there is no textures. More...
|
virtual bool | isTextureFile (uint stage=0) const=0 |
| Check wether the texture of the n-th stage is a texture file. More...
|
virtual std::string | getTextureFileName (uint stage=0) const=0 |
| Get the fileName used by the n-th texture file. (must be a texture file or an assertion is raised). More...
|
virtual void | emptyTexture (uint stage=0)=0 |
virtual void | setTextureFileName (const std::string &fileName, uint stage=0)=0 |
| Set the fileName used by the n-th texture file. More...
|
virtual void | enableUserTexMat (uint stage, bool enabled=true)=0 |
virtual bool | isUserTexMatEnabled (uint stage) const=0 |
virtual void | setUserTexMat (uint stage, const NLMISC::CMatrix &m)=0 |
| Set a new texture matrix for the given stage. More...
|
virtual const NLMISC::CMatrix & | getUserTexMat (uint stage) const=0 |
| Get a const ref. More...
|
Protected Methods |
|
| UInstanceMaterial () |
virtual | ~UInstanceMaterial () |
Detailed Description
Base interface for manipulating Material retrieved from UInstance.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 47 of file u_instance_material.h.
Member Enumeration Documentation
enum NL3D::UInstanceMaterial::TBlend
|
|
Constructor & Destructor Documentation
NL3D::UInstanceMaterial::UInstanceMaterial |
( |
|
) |
[inline, protected] |
|
virtual NL3D::UInstanceMaterial::~UInstanceMaterial |
( |
|
) |
[inline, protected, virtual] |
|
Member Function Documentation
virtual void NL3D::UInstanceMaterial::emptyTexture |
( |
uint |
stage = 0 |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::enableUserTexMat |
( |
uint |
stage, |
|
|
bool |
enabled = true |
|
) |
[pure virtual] |
|
virtual CRGBA NL3D::UInstanceMaterial::getAmbient |
( |
|
) |
const [pure virtual] |
|
virtual bool NL3D::UInstanceMaterial::getBlend |
( |
|
) |
const [pure virtual] |
|
virtual CRGBA NL3D::UInstanceMaterial::getColor |
( |
void |
|
) |
const [pure virtual] |
|
virtual NLMISC::CRGBA NL3D::UInstanceMaterial::getConstantColor |
( |
uint |
stage |
) |
const [pure virtual] |
|
virtual CRGBA NL3D::UInstanceMaterial::getDiffuse |
( |
|
) |
const [pure virtual] |
|
virtual TBlend NL3D::UInstanceMaterial::getDstBlend |
( |
void |
|
) |
const [pure virtual] |
|
virtual CRGBA NL3D::UInstanceMaterial::getEmissive |
( |
|
) |
const [pure virtual] |
|
virtual sint NL3D::UInstanceMaterial::getLastTextureStage |
( |
|
) |
const [pure virtual] |
|
virtual uint8 NL3D::UInstanceMaterial::getOpacity |
( |
|
) |
const [pure virtual] |
|
virtual float NL3D::UInstanceMaterial::getShininess |
( |
|
) |
const [pure virtual] |
|
virtual CRGBA NL3D::UInstanceMaterial::getSpecular |
( |
|
) |
const [pure virtual] |
|
virtual TBlend NL3D::UInstanceMaterial::getSrcBlend |
( |
void |
|
) |
const [pure virtual] |
|
virtual std::string NL3D::UInstanceMaterial::getTextureFileName |
( |
uint |
stage = 0 |
) |
const [pure virtual] |
|
|
Get the fileName used by the n-th texture file. (must be a texture file or an assertion is raised).
Implemented in NL3D::CInstanceMaterialUser. |
virtual CRGBA NL3D::UInstanceMaterial::getUserColor |
( |
|
) |
const [pure virtual] |
|
virtual const NLMISC::CMatrix& NL3D::UInstanceMaterial::getUserTexMat |
( |
uint |
stage |
) |
const [pure virtual] |
|
virtual bool NL3D::UInstanceMaterial::isLighted |
( |
|
) |
const [pure virtual] |
|
virtual bool NL3D::UInstanceMaterial::isTextureFile |
( |
uint |
stage = 0 |
) |
const [pure virtual] |
|
virtual bool NL3D::UInstanceMaterial::isUserColor |
( |
|
) |
const [pure virtual] |
|
virtual bool NL3D::UInstanceMaterial::isUserTexMatEnabled |
( |
uint |
stage |
) |
const [pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setAmbient |
( |
CRGBA |
ambient = CRGBA(0, 0, 0) |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setBlend |
( |
bool |
active |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setBlendFunc |
( |
TBlend |
src, |
|
|
TBlend |
dst |
|
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setColor |
( |
CRGBA |
rgba |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setConstantColor |
( |
uint |
stage, |
|
|
NLMISC::CRGBA |
color |
|
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setDiffuse |
( |
CRGBA |
diffuse = CRGBA(0, 0, 0) |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setDstBlend |
( |
TBlend |
val |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setEmissive |
( |
CRGBA |
emissive = CRGBA(0, 0, 0) |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setOpacity |
( |
uint8 |
opa |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setShininess |
( |
float |
shininess |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setSpecular |
( |
CRGBA |
specular = CRGBA(0, 0, 0) |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setSrcBlend |
( |
TBlend |
val |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setTextureFileName |
( |
const std::string & |
fileName, |
|
|
uint |
stage = 0 |
|
) |
[pure virtual] |
|
|
Set the fileName used by the n-th texture file.
(must be a texture file or an assertion is raised) NB: if success and if instanceOwner->getAsyncTextureMode()==true, then instanceOwner->setAsyncTextureDirty(true) is called
Implemented in NL3D::CInstanceMaterialUser. |
virtual void NL3D::UInstanceMaterial::setUserColor |
( |
CRGBA |
userColor |
) |
[pure virtual] |
|
virtual void NL3D::UInstanceMaterial::setUserTexMat |
( |
uint |
stage, |
|
|
const NLMISC::CMatrix & |
m |
|
) |
[pure virtual] |
|
The documentation for this class was generated from the following file:
|
|