#include <ihardwarematerial.h>
Public Member Functions |
|
virtual Interface_ID | GetID () |
virtual LifetimeType | LifetimeControl () |
virtual void | SetCustomFlag (bool bVal)=0 |
virtual void | SetFillMode (DWORD mode)=0 |
virtual void | SetShadeMode (DWORD mode)=0 |
virtual void | SetMaterial (LPD3DXMATERIAL pMtl)=0 |
virtual void | SetDiffuseColor (LPD3DXCOLOR pClr)=0 |
virtual void | SetDiffuseColor (Color c, float alpha=1.0f)=0 |
virtual void | SetDiffuseColor (Point3 c, float alpha=1.0f)=0 |
virtual void | SetAmbientColor (LPD3DXCOLOR pClr)=0 |
virtual void | SetAmbientColor (Color c, float alpha=1.0f)=0 |
virtual void | SetAmbientColor (Point3 c, float alpha=1.0f)=0 |
virtual void | SetSpecularColor (LPD3DXCOLOR pClr)=0 |
virtual void | SetSpecularColor (Color c, float alpha=1.0f)=0 |
virtual void | SetSpecularColor (Point3 c, float alpha=1.0f)=0 |
virtual void | SetEmissiveColor (LPD3DXCOLOR pClr)=0 |
virtual void | SetEmissiveColor (Color c, float alpha=1.0f)=0 |
virtual void | SetEmissiveColor (Point3 c, float alpha=1.0f)=0 |
virtual void | SetSpecularPower (float power)=0 |
virtual bool | SetNumTexStages (DWORD numStages)=0 |
virtual bool | SetTexture (DWORD stage, DWORD_PTR pTexture)=0 |
virtual bool | SetTexture (DWORD stage, LPCSTR filename)=0 |
virtual bool | SetTexture (DWORD stage, DWORD_PTR pTexture, MapUsageType usage)=0 |
virtual bool | SetTexture (DWORD stage, LPCSTR filename, MapUsageType usage)=0 |
This method allows a texture to be loaded to
the graphics device. |
|
virtual bool | SetTextureUVWSource (DWORD stage, DWORD type)=0 |
virtual bool | SetTextureMapChannel (DWORD stage, DWORD numChan)=0 |
virtual bool | SetTextureCoordIndex (DWORD stage, DWORD index)=0 |
virtual bool | SetTextureTransformFlag (DWORD stage, DWORD flag)=0 |
virtual bool | SetTextureTransform (DWORD stage, LPD3DXMATRIX pTransform)=0 |
virtual bool | SetTextureColorOp (DWORD stage, DWORD colorOp)=0 |
virtual bool | SetTextureColorArg (DWORD stage, DWORD argNum, DWORD colorArg)=0 |
virtual bool | SetTextureAlphaOp (DWORD stage, DWORD alphaArg)=0 |
virtual bool | SetTextureAlphaArg (DWORD stage, DWORD argNum, DWORD alphaArg)=0 |
virtual bool | SetTextureAddressMode (DWORD stage, DWORD coordNum, DWORD mode)=0 |
virtual bool | SetVertexShader (DWORD_PTR pVertexShader)=0 |
virtual bool | SetPixelShader (DWORD_PTR pPixelShader)=0 |
virtual bool | SetEffect (DWORD_PTR pEffect)=0 |
virtual bool | SetPlugin (BaseInterface *pPlugin)=0 |
virtual bool | SetINode (INode *pINode)=0 |
virtual void | SetTextureFactor (DWORD factor)=0 |
virtual void | SetSpecularLevel (float level)=0 |
This method sets the specular level.
|
virtual Interface_ID GetID | ( | ) | [inline, virtual] |
Reimplemented from BaseInterface.
{ return IHARDWARE_MATERIAL_INTERFACE_ID; }
virtual LifetimeType LifetimeControl | ( | ) | [inline, virtual] |
Reimplemented from BaseInterface.
{ return noRelease; }
virtual void SetCustomFlag | ( | bool | bVal | ) | [pure virtual] |
virtual void SetFillMode | ( | DWORD | mode | ) | [pure virtual] |
virtual void SetShadeMode | ( | DWORD | mode | ) | [pure virtual] |
virtual void SetMaterial | ( | LPD3DXMATERIAL | pMtl | ) | [pure virtual] |
virtual void SetDiffuseColor | ( | LPD3DXCOLOR | pClr | ) | [pure virtual] |
virtual void SetDiffuseColor | ( | Color | c, |
float | alpha = 1.0f |
||
) | [pure virtual] |
virtual void SetDiffuseColor | ( | Point3 | c, |
float | alpha = 1.0f |
||
) | [pure virtual] |
virtual void SetAmbientColor | ( | LPD3DXCOLOR | pClr | ) | [pure virtual] |
virtual void SetAmbientColor | ( | Color | c, |
float | alpha = 1.0f |
||
) | [pure virtual] |
virtual void SetAmbientColor | ( | Point3 | c, |
float | alpha = 1.0f |
||
) | [pure virtual] |
virtual void SetSpecularColor | ( | LPD3DXCOLOR | pClr | ) | [pure virtual] |
virtual void SetSpecularColor | ( | Color | c, |
float | alpha = 1.0f |
||
) | [pure virtual] |
virtual void SetSpecularColor | ( | Point3 | c, |
float | alpha = 1.0f |
||
) | [pure virtual] |
virtual void SetEmissiveColor | ( | LPD3DXCOLOR | pClr | ) | [pure virtual] |
virtual void SetEmissiveColor | ( | Color | c, |
float | alpha = 1.0f |
||
) | [pure virtual] |
virtual void SetEmissiveColor | ( | Point3 | c, |
float | alpha = 1.0f |
||
) | [pure virtual] |
virtual void SetSpecularPower | ( | float | power | ) | [pure virtual] |
virtual bool SetNumTexStages | ( | DWORD | numStages | ) | [pure virtual] |
virtual bool SetTexture | ( | DWORD | stage, |
DWORD_PTR | pTexture | ||
) | [pure virtual] |
virtual bool SetTexture | ( | DWORD | stage, |
LPCSTR | filename | ||
) | [pure virtual] |
virtual bool SetTexture | ( | DWORD | stage, |
DWORD_PTR | pTexture, | ||
MapUsageType | usage | ||
) | [pure virtual] |
[in] | stage | - The stage to hold the texture |
[in] | pTexture | - A texture pointer returned by IHardwareRenderer::BuildTexture() |
[in] | usage | - A enum type that tell the rendering system the usage of the texture |
virtual bool SetTexture | ( | DWORD | stage, |
LPCSTR | filename, | ||
MapUsageType | usage | ||
) | [pure virtual] |
This method allows a texture to be loaded to the graphics device.
The file is assumed to exist. If successful it will return true.
NOTE:If you want to take advantage of the new viewport display
mechanism ,you should pass a valid MapUsageType other than
MAPUSAGE_UNDEFINED for stage 0. Otherwise, it will use the old
display mechanism.
[in] | stage | - The stage to hold the texture |
[in] | filename | - A string containing the filename of the texture to
load |
[in] | usage | - A enum type that tell the rendering system the usage of this
texture |
virtual bool SetTextureUVWSource | ( | DWORD | stage, |
DWORD | type | ||
) | [pure virtual] |
virtual bool SetTextureMapChannel | ( | DWORD | stage, |
DWORD | numChan | ||
) | [pure virtual] |
virtual bool SetTextureCoordIndex | ( | DWORD | stage, |
DWORD | index | ||
) | [pure virtual] |
virtual bool SetTextureTransformFlag | ( | DWORD | stage, |
DWORD | flag | ||
) | [pure virtual] |
virtual bool SetTextureTransform | ( | DWORD | stage, |
LPD3DXMATRIX | pTransform | ||
) | [pure virtual] |
virtual bool SetTextureColorOp | ( | DWORD | stage, |
DWORD | colorOp | ||
) | [pure virtual] |
virtual bool SetTextureColorArg | ( | DWORD | stage, |
DWORD | argNum, | ||
DWORD | colorArg | ||
) | [pure virtual] |
virtual bool SetTextureAlphaOp | ( | DWORD | stage, |
DWORD | alphaArg | ||
) | [pure virtual] |
virtual bool SetTextureAlphaArg | ( | DWORD | stage, |
DWORD | argNum, | ||
DWORD | alphaArg | ||
) | [pure virtual] |
virtual bool SetTextureAddressMode | ( | DWORD | stage, |
DWORD | coordNum, | ||
DWORD | mode | ||
) | [pure virtual] |
virtual bool SetVertexShader | ( | DWORD_PTR | pVertexShader | ) | [pure virtual] |
virtual bool SetPixelShader | ( | DWORD_PTR | pPixelShader | ) | [pure virtual] |
virtual bool SetEffect | ( | DWORD_PTR | pEffect | ) | [pure virtual] |
virtual bool SetPlugin | ( | BaseInterface * | pPlugin | ) | [pure virtual] |
virtual bool SetINode | ( | INode * | pINode | ) | [pure virtual] |
virtual void SetTextureFactor | ( | DWORD | factor | ) | [pure virtual] |
virtual void SetSpecularLevel | ( | float | level | ) | [pure virtual] |
This method sets the specular level.
This method sets the specular level value. The specular level
information is used
to adjust the specular color when viewport is in best quality
mode.
NOTE:If specular level map exists, this value will be ignored.
[in] | level | - The specular level value. |