This reference page is linked to from the following overview topics: Your First Python Program, Scene Elements, FBModel - Transformation Data and the Scene Graph.
Shader class.
Definition at line 385 of file fbshader.h.
#include <fbshader.h>
Public Member Functions |
|
FBShader (const char *pName, HIObject pObject=NULL) | |
Protected constructor. |
|
IObject_Declare (Implementation) | |
virtual HFBShaderModelInfo | NewShaderModelInfo (HFBRenderOptions pOptions, HIGraphicPrimitives pGPS) |
Create a new shader-model information
object. |
|
virtual void | DestroyShaderModelInfo (HFBRenderOptions pOptions, HFBShaderModelInfo pInfo) |
Destroy shader-model information object
callback. |
|
virtual void | ReplaceAll (HFBModel pModel) |
Replace all shader in pModel.
|
|
virtual void | Append (HFBModel pModel) |
Append shader to pModel. |
|
virtual bool | ShaderNeedBeginRender () |
Does the shader need a begin render call.
|
|
virtual void | ShaderBeginRender (HFBRenderOptions pOptions, HFBShaderModelInfo pInfo) |
Pre-rendering of shaders that is called only
one time for a shader instance. |
|
virtual void | ShadeModel (HFBRenderOptions pOptions, HFBShaderModelInfo pInfo, FBRenderingPass pPass) |
Real-time shading callback. |
|
virtual void | CloneShaderParameter (HFBShader pNewShader) |
Clone shader. |
|
virtual void | DetachDisplayContext (HFBRenderOptions pOptions, HFBShaderModelInfo pInfo) |
Detach the display context from the shader.
|
|
virtual bool | FbxStore (HFBFbxObject pFbxObject) |
Storage of information into the FBX file
format. |
|
virtual bool | FbxRetrieve (HFBFbxObject pFbxObject, HFBRenderer pRenderer) |
Retrieval of information into the FBX file
format. |
|
int | GetShaderVersion () const |
Return Shader Version. |
|
Public Attributes |
|
char * | ShaderDescription |
Description. |
|
FBPropertyRenderingPass | RenderingPass |
Read Write Property: Rendering pass
object are shaded in. |
|
Static Protected Member Functions |
|
static FBRenderingPass | GetRenderingPassNeededForAlpha (FBAlphaSource pTransparency) |
In order to be called at the right passes, a
shader must set the result of
GetRenderingPassNeededForAlpha() to RenderingPass for a given
transparency type. |
|
Protected Attributes |
|
int | mShader_Version |
FBShader | ( | const char * | pName, |
HIObject | pObject =
NULL |
||
) |
Protected constructor.
pName | Shader name. |
pObject | Internal parent object to own shader(default=NULL). |
IObject_Declare | ( | Implementation | ) |
Reimplemented from FBBox.
virtual HFBShaderModelInfo NewShaderModelInfo | ( | HFBRenderOptions | pOptions, |
HIGraphicPrimitives | pGPS | ||
) | [virtual] |
Create a new shader-model information object.
pOptions | Render options. |
pInfo | Base shader-model information object. |
virtual void DestroyShaderModelInfo | ( | HFBRenderOptions | pOptions, |
HFBShaderModelInfo | pInfo | ||
) | [virtual] |
Destroy shader-model information object callback.
pOptions | Render options. |
pInfo | Shader-model information object to destroy. |
virtual void ReplaceAll | ( | HFBModel | pModel | ) | [virtual] |
Replace all shader in pModel.
pModel | Model to replace all shader to. |
virtual void Append | ( | HFBModel | pModel | ) | [virtual] |
virtual bool ShaderNeedBeginRender | ( | ) | [virtual] |
Does the shader need a begin render call.
virtual void ShaderBeginRender | ( | HFBRenderOptions | pOptions, |
HFBShaderModelInfo | pInfo | ||
) | [virtual] |
Pre-rendering of shaders that is called only one time for a shader instance.
virtual void ShadeModel | ( | HFBRenderOptions | pOptions, |
HFBShaderModelInfo | pInfo, | ||
FBRenderingPass | pPass | ||
) | [virtual] |
Real-time shading callback.
This is called after all the calls to ShaderBeginRender.
pOptions | Render options. |
pPass | Rendering pass. |
pInfo | Shader-model information. |
virtual void CloneShaderParameter | ( | HFBShader | pNewShader | ) | [virtual] |
virtual void DetachDisplayContext | ( | HFBRenderOptions | pOptions, |
HFBShaderModelInfo | pInfo | ||
) | [virtual] |
Detach the display context from the shader.
pOptions | Render options. |
pInfo | Shader-model information object. |
virtual bool FbxStore | ( | HFBFbxObject | pFbxObject | ) | [virtual] |
Storage of information into the FBX file format.
pFbxObject | Object to interface with FBX file format. |
virtual bool FbxRetrieve | ( | HFBFbxObject | pFbxObject, |
HFBRenderer | pRenderer | ||
) | [virtual] |
Retrieval of information into the FBX file format.
pFbxObject | Object to interface with FBX file format. |
pRenderer | Renderer being restored. |
int GetShaderVersion | ( | ) | const [inline] |
static FBRenderingPass GetRenderingPassNeededForAlpha | ( | FBAlphaSource | pTransparency | ) | [static, protected] |
In order to be called at the right passes, a shader must set the result of GetRenderingPassNeededForAlpha() to RenderingPass for a given transparency type.
It should not be called at rendering time.
pTransparency | Transparency type. |
char* ShaderDescription |
FBPropertyRenderingPass RenderingPass |
Read Write Property: Rendering pass object are shaded in.
Set the property to kFBPassFlat if you want to be called at the first pass, kFBPassPostRender at the second pass, kFBPassFlat | kFBPassPostRender at both. The current pass will be the third argument of ShadeModel()
Definition at line 470 of file fbshader.h.
int mShader_Version
[protected] |
Definition at line 484 of file fbshader.h.