nAbstractShaderNode Class Reference
[Scene System]
#include <nabstractshadernode.h>
Inheritance diagram for nAbstractShaderNode:

Detailed Description
This is the base class for all shader related scene node classes (for instance material and light nodes).All those classes need to hold named, typed shader variables, as well as texture resource management.
See also nAbstractShaderNode Script Interface
(C) 2003 RadonLabs GmbH
Definition at line 27 of file nabstractshadernode.h.
Public Member Functions | |
| nAbstractShaderNode () | |
| constructor | |
| virtual | ~nAbstractShaderNode () |
| destructor | |
| virtual bool | SaveCmds (nPersistServer *ps) |
| object persistency | |
| virtual bool | LoadResources () |
| load resources | |
| virtual void | UnloadResources () |
| unload resources | |
| void | SetUvPos (uint layer, const vector2 &p) |
| set uv position for texture layer | |
| const vector2 & | GetUvPos (uint layer) const |
| get uv position for texture layer | |
| void | SetUvEuler (uint layer, const vector3 &p) |
| set uv euler rotation for texture layer | |
| const vector3 & | GetUvEuler (uint layer) const |
| get uv euler rotation for texture layer | |
| void | SetUvScale (uint layer, const vector2 &p) |
| set uv scale for texture layer | |
| const vector2 & | GetUvScale (uint layer) const |
| get uv scale for texture layer | |
| void | SetTexture (nShaderState::Param param, const char *texName) |
| bind a texture resource to a shader variable | |
| const char * | GetTexture (nShaderState::Param param) const |
| get texture resource bound to variable | |
| void | SetInt (nShaderState::Param param, int val) |
| bind a int value to a a shader variable | |
| int | GetInt (nShaderState::Param param) const |
| get an int value bound to a shader variable | |
| void | SetBool (nShaderState::Param param, bool val) |
| bind a bool value to a a shader variable | |
| bool | GetBool (nShaderState::Param param) const |
| get an bool value bound to a shader variable | |
| void | SetFloat (nShaderState::Param param, float val) |
| bind a float value to a shader variable | |
| float | GetFloat (nShaderState::Param param) const |
| get a float value bound to a shader variable | |
| void | SetVector (nShaderState::Param param, const vector4 &val) |
| bind a vector value to a shader variable | |
| const vector4 & | GetVector (nShaderState::Param param) const |
| get a vector value bound to a shader variable | |
| nShaderParams & | GetShaderParams () |
| get shader params | |
| bool | HasParam (nShaderState::Param param) |
| returns true, if node possesses the param | |
| int | GetNumTextures () const |
| get number of textures | |
| const char * | GetTextureAt (int index) const |
| get texture resource name at index | |
| nShaderState::Param | GetTextureParamAt (int index) const |
| get texture shader parameter at index | |
| int | GetNumParams () const |
| const char * | GetParamNameByIndex (int index) const |
| const char * | GetParamTypeByIndex (int index) const |
Protected Member Functions | |
| bool | LoadTexture (int index) |
| load a texture resource | |
| void | UnloadTexture (int index) |
| unload a texture resource | |
| virtual bool | IsTextureUsed (nShaderState::Param param) |
| abstract method: returns always true | |
Protected Attributes | |
| nArray< TexNode > | texNodeArray |
| transform33 | textureTransform [nGfxServer2::MaxTextureStages] |
| nShaderParams | shaderParams |
Classes | |
| class | TexNode |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 13 of file nabstractshadernode_main.cc. |
|
|
destructor
Definition at line 21 of file nabstractshadernode_main.cc. |
Member Function Documentation
|
|
object persistency
Reimplemented from nTransformNode. Reimplemented in nSwingShapeNode, nBlendShapeNode, nLightNode, nMaterialNode, nMultiLayeredNode, nParticleShapeNode, nParticleShapeNode2, nShapeNode, nSkinShapeNode, nSubdivShapeNode, nCLODShapeNode, nTerrainGrassNode, nTerrainNode, and nMapNode. |
|
|
load resources Load the resources needed by this object. Reimplemented from nSceneNode. Reimplemented in nSwingShapeNode, nBlendShapeNode, nMaterialNode, nShapeNode, nTextShapeNode, nCLODShapeNode, nTerrainNode, and nMapNode. Definition at line 77 of file nabstractshadernode_main.cc. |
|
|
unload resources Unload the resources if refcount has reached zero. Reimplemented from nSceneNode. Reimplemented in nSwingShapeNode, nBlendShapeNode, nMaterialNode, nShapeNode, nTextShapeNode, nCLODShapeNode, and nTerrainNode. Definition at line 97 of file nabstractshadernode_main.cc. |
|
||||||||||||
|
set uv position for texture layer
Definition at line 142 of file nabstractshadernode.h. |
|
|
get uv position for texture layer
Definition at line 153 of file nabstractshadernode.h. |
|
||||||||||||
|
set uv euler rotation for texture layer -01-Nov-06 kims Changed to have vector3 in-args for uv animation. Definition at line 165 of file nabstractshadernode.h. |
|
|
get uv euler rotation for texture layer -01-Nov-06 kims Changed to return vector3 type for uv animation. Definition at line 177 of file nabstractshadernode.h. |
|
||||||||||||
|
set uv scale for texture layer
Definition at line 188 of file nabstractshadernode.h. |
|
|
get uv scale for texture layer
Definition at line 199 of file nabstractshadernode.h. |
|
||||||||||||
|
bind a texture resource to a shader variable
Definition at line 112 of file nabstractshadernode_main.cc. |
|
|
get texture resource bound to variable
Definition at line 153 of file nabstractshadernode_main.cc. |
|
||||||||||||
|
bind a int value to a a shader variable
Definition at line 210 of file nabstractshadernode.h. |
|
|
get an int value bound to a shader variable
Definition at line 226 of file nabstractshadernode.h. |
|
||||||||||||
|
bind a bool value to a a shader variable
Definition at line 236 of file nabstractshadernode.h. |
|
|
get an bool value bound to a shader variable
Definition at line 252 of file nabstractshadernode.h. |
|
||||||||||||
|
bind a float value to a shader variable
Definition at line 262 of file nabstractshadernode.h. |
|
|
get a float value bound to a shader variable
Definition at line 278 of file nabstractshadernode.h. |
|
||||||||||||
|
bind a vector value to a shader variable
Definition at line 288 of file nabstractshadernode.h. |
|
|
get a vector value bound to a shader variable
Definition at line 304 of file nabstractshadernode.h. |
|
|
get shader params get nShaderParams from node Definition at line 192 of file nabstractshadernode_main.cc. |
|
|
returns true, if node possesses the param Returns true, if param is valid Definition at line 182 of file nabstractshadernode_main.cc. |
|
|
get number of textures
Definition at line 314 of file nabstractshadernode.h. |
|
|
get texture resource name at index
Definition at line 324 of file nabstractshadernode.h. |
|
|
get texture shader parameter at index
Definition at line 334 of file nabstractshadernode.h. |
|
|
Definition at line 344 of file nabstractshadernode.h. |
|
|
Definition at line 354 of file nabstractshadernode.h. |
|
|
Definition at line 363 of file nabstractshadernode.h. |
|
|
load a texture resource Load a texture resource. Definition at line 46 of file nabstractshadernode_main.cc. |
|
|
unload a texture resource Unload a texture resource. Definition at line 31 of file nabstractshadernode_main.cc. |
|
|
abstract method: returns always true
Definition at line 172 of file nabstractshadernode_main.cc. |
Member Data Documentation
|
|
Definition at line 111 of file nabstractshadernode.h. |
|
|
Definition at line 112 of file nabstractshadernode.h. |
|
|
Definition at line 113 of file nabstractshadernode.h. |
The documentation for this class was generated from the following files: