#include <RmEffect.h>
Inheritance diagram for RmPass:

Public Member Functions | |
| RmPass () | |
| Default Constructor. | |
| RmPass (const RM_TCHAR *strPassName, const int nPassIndex) | |
| Constructor. | |
| virtual | ~RmPass () |
| Destructor. | |
| virtual bool | AddChild (RmNode *pChildNode, RmNode *pNextSibling=NULL) |
| AddChild. | |
| virtual void | Update (RmNodeUpdateType nodeUpdateType, RmNode *pRmUpdateRootNode) |
| Update. | |
| virtual bool | LoadXMLData (int hDoc, const RM_TCHAR *strXPath, const RM_TCHAR *strRmXMLVersion) |
| Load node data from XML. | |
| virtual bool | SaveXMLData (int hDoc, const RM_TCHAR *strXPath) |
| Save node data to XML. | |
| virtual RmNode * | Clone (bool bIncludeLoadedData) |
| Clone this node. | |
| virtual const RM_TCHAR * | GetDescription () |
| virtual bool | IsNodeValid () |
| Is node valid. | |
| bool | AddVertexShader (RmShader *pVertexShader) |
| Add vertex shader. | |
| bool | AddPixelShader (RmShader *pPixelShader) |
| Add pixel shader. | |
| RmShader * | GetVertexShader () |
| Get vertex shader. | |
| RmShader * | GetPixelShader () |
| Get pixel shader. | |
| RmShader * | GetActivePixelShader () |
| Get active pixel shader. | |
| RmShader * | GetActiveVertexShader () |
| Get active vertex shader. | |
| RmShader * | GetShader (const RM_TCHAR *strShaderName) |
| Get shader by name. | |
| bool | AddStreamMappingReference (RmStreamMapReference *pStreamMapReference) |
| Add stream mapping reference. | |
| RmStreamMap * | GetStreamMap () |
| Get stream map. | |
| RmStreamMapReference * | GetStreamMapReference () |
| Get streammapping reference. | |
| bool | AddRenderStateBlock (RmRenderStateBlock *pBlock) |
| Add render state block. | |
| RmRenderStateBlock * | GetRenderStateBlock () |
| Get render state block. | |
| int | GetNumTextureObjects () |
| Get number of texture object. | |
| int | GetNumVertexTextureObjects () |
| Get number of vertex texture object. | |
| int | GetNumLightObjects () |
| Get number of light object. | |
| int | GetNumMaterialObjects () |
| Get number of material object. | |
| int | GetNumRenderTargets () |
| Get number of render target object. | |
| int | GetMaxNumRenderTargets () |
| Get maximum number of render targets. | |
| RmTextureObject * | GetTextureObject (int nIndex) |
| RmTextureObject * | GetVertexTextureObject (int nIndex) |
| RmLightObject * | GetLightObject (int nIndex) |
| RmMaterialObject * | GetMaterialObject (int nIndex) |
| RmRenderTarget * | GetRenderTarget (int nIndex=0) |
| bool | IsRenderingToBackBuffer () |
| bool | AddModelReference (RmModelReference *pModelRef) |
| Add Model reference. | |
| RmModelData * | GetModel () |
| Get model. | |
| RmModelReference * | GetModelReference () |
| Get model reference. | |
| bool | AddRenderTarget (RmRenderTarget *pRenderTarget) |
| Add render target. | |
| void | Enable (bool bEnable=true) |
| Enable pass. | |
| bool | IsEnabled () |
| Is enabled. | |
| bool | IsDisabled () |
| Is pass disabled. | |
| void * | GetModelResource () |
| Get model resource. | |
| void | SetModelResource (void *pModelResource) |
| Set model resource. | |
| RmCameraReference * | GetCameraReference () |
| Get camera reference. | |
Reordering object functions | |
| void | ReOrderTextureObjectStageIndices () |
| Reorder objects. | |
| void | ReOrderLightObjectStageIndices () |
| void | ReOrderMaterialObjectStageIndices () |
| void | ReOrderRenderTargetStageIndices () |
Object iterator functions | |
| RmTextureObjectListIterator | BeginTextureObjects () |
| Iterators for objects. | |
| RmTextureObjectListConstIterator | BeginTextureObjects () const |
| RmTextureObjectListIterator | EndTextureObjects () |
| RmTextureObjectListConstIterator | EndTextureObjects () const |
| RmTextureObjectListIterator | BeginVertexTextureObjects () |
| RmTextureObjectListConstIterator | BeginVertexTextureObjects () const |
| RmTextureObjectListIterator | EndVertexTextureObjects () |
| RmTextureObjectListConstIterator | EndVertexTextureObjects () const |
| RmLightObjectListIterator | BeginLightObjects () |
| RmLightObjectListConstIterator | BeginLightObjects () const |
| RmLightObjectListIterator | EndLightObjects () |
| RmLightObjectListConstIterator | EndLightObjects () const |
| RmMaterialObjectListIterator | BeginMaterialObjects () |
| RmMaterialObjectListConstIterator | BeginMaterialObjects () const |
| RmMaterialObjectListIterator | EndMaterialObjects () |
| RmMaterialObjectListConstIterator | EndMaterialObjects () const |
| RmRenderTargetListIterator | BeginRenderTargets () |
| RmRenderTargetListConstIterator | BeginRenderTargets () const |
| RmRenderTargetListIterator | EndRenderTargets () |
| RmRenderTargetListConstIterator | EndRenderTargets () const |
| int | GetPassIndex () |
| Get / Set the pass nIndex. | |
| void | SetPassIndex (int nPassIndex) |
Protected Member Functions | |
| virtual void | CopyNodeData (RmNode *pDestinationNode, bool bIncludeLoadedData) |
| Copy node data. | |
| virtual void | SetType (const RM_TCHAR *strNewType) |
| Set type. | |
| virtual RmNodeTypeChildRuleList * | GetNodeTypeChildRuleList () |
| Parent / Child rule list function. | |
| virtual void | SetNodeTypeChildRuleList (RmNodeTypeChildRuleList *pRmNodeChildRuleList) |
| Sets the node child rule list for the given node. | |
Protected Attributes | |
| bool | m_bEnabled |
| Flag for disabling or enabling rendering of a pass:. | |
| int | m_nPassIndex |
| Pass index. | |
| RmShader * | m_pPixelShader |
| Pixel Shader. | |
| RmShader * | m_pVertexShader |
| Vertex Shader. | |
| RmTextureObjectList | m_textureObjectList |
| Collection of RmTextureObjects. | |
| RmTextureObjectList | m_vertexTextureObjectList |
| Collection of vertex RmTextureObjects. | |
| RmLightObjectList | m_lightObjectList |
| Collection of RmLightObject. | |
| RmMaterialObjectList | m_materialObjectList |
| Collection of RmMaterialObject. | |
| RmRenderTargetList | m_renderTargetList |
| Collection of RmRenderTarget. | |
| RmStreamMapReference * | m_pStreamMapReference |
| Stream mapping reference node. | |
| RmModelReference * | m_pModelReference |
| Geometry model reference. | |
| RmRenderStateBlock * | m_pRenderStateBlock |
| Render state block node:. | |
| RmCameraReference * | m_pRmCameraReference |
| Camera Reference node. | |
| void * | m_pModelResource |
| Used for storing a pointer to the run-time model data resource. | |
RmPass structure contains various structures used to render a single pass of an effect
|
|
Default Constructor. Default constructor |
|
||||||||||||
|
Constructor. Creates a new pass node with the specified name. If bInitialize parameter is true, the pass is created with a pair of shaders (their type is according to the pass API determination), a stream mapping reference node and a model reference node.
|
|
|
Destructor. Destructor |
|
||||||||||||
|
AddChild. Add a new child node
Reimplemented from RmNode. Reimplemented in RmGLPass. |
|
|
Add Model reference. Add model reference to the pass. If the pass already contains a model reference, it will be replaced with the specified object.
|
|
|
Add pixel shader. Adds the specified shader as the pixel shader to the pass
|
|
|
Add render state block. Add render state block to the pass. Note that if the pass already has a render state block present, the old one will be deleted and replaced with the newly specified render state block.
|
|
|
Add render target. Add render target node to this pass. If the pass already contains a render target node, it will be deleted and replaced with the newly specified node
|
|
|
Add stream mapping reference. Add the stream mapping reference node to this pass node. Note that if the pass already contains a stream mapping node or a stream mapping reference node, it will be replaced with the specified node.
|
|
|
Add vertex shader. Adds the specified shader as the vertex shader to the pass
|
|
|
Clone this node. Creates a clone of this node
Reimplemented from RmNode. Reimplemented in RmGLPass. |
|
||||||||||||
|
Copy node data. Copies this node's contents (not including children) into the destination node. See RmNode::CopyNodeData for details
Reimplemented from RmNode. Reimplemented in RmGLPass. |
|
|
Enable pass. Enable or disable rendering of this pass. Enable(false) disables rendering of this pass
|
|
|
Get active pixel shader. This method retrieves the pixel shader that will be used by the pass to setup its rendering state. First the pass itself is checked for availability of particular shader node. Then if the pass doesn't have the shader, the method walks up the the effect passes and then up to the default effect passes. As soon as it finds the first shader, it returns it.
|
|
|
Get active vertex shader. This method retrieves the vertex shader that will be used by the pass to setup its rendering state. First the pass itself is checked for availability of particular shader node. Then if the pass doesn't have the shader, the method walks up the the effect passes and then up to the default effect passes. As soon as it finds the first shader, it returns it.
|
|
|
Get camera reference. Retrieve camera data from the pass.
|
|
|
Returns description of the node: used for displaying a tooltip in the workspace tree view for the given node.
Reimplemented from RmNode. Reimplemented in RmGLPass. |
|
|
Get light object by index Retrieve light object by nIndex
|
|
|
Get material object by index Retrieve material object by nIndex
|
|
|
Get maximum number of render targets. Retrieve max number of render targets in the given pass
|
|
|
Get model. Retrieve model data from the pass. Note that if the pass has only a model reference, this method will return the model data node that it references to.
|
|
|
Get model reference. Retrieve model reference node from this pass
|
|
|
Get model resource. Retrieve the handle for run-time model resource used for rendering this pass by the viewer plug-in
|
|
|
Parent / Child rule list function. Retrieves the rule list for adding child nodes for a given node type
Reimplemented from RmNode. Reimplemented in RmGLPass. |
|
|
Get number of light object. Retrieve number of light objects in the given pass
|
|
|
Get number of material object. Retrieve number of material objects in the given pass
|
|
|
Get number of render target object. Retrieve number of render target objects in the given pass
|
|
|
Get number of texture object. Retrieve number of texture objects in the given pass
|
|
|
Get number of vertex texture object. Retrieve number of vertex texture objects in the given pass
|
|
|
Get pixel shader. Retrieves the pixel shader from the pass
|
|
|
Get render state block. Retrieve render state block from the pass
|
|
|
Get renderTarget object by index Retrieve renderTarget object by nIndex
|
|
|
Get shader by name. Retrieves a shader node by its name. Returns NULL if shader name didn't match any shaders in this pass
|
|
|
Get stream map. Retrieve stream mapping node from the pass node. Note: if the pass only stores a stream mapping reference node, this method will actually return the stream mapping node the reference points to
|
|
|
Get streammapping reference. Retrieve stream map reference node from this pass
|
|
|
Get texture object by index Retrieve texture object by nIndex
|
|
|
Get vertex shader. Retrieves the vertex shader from the pass
|
|
|
Get vertex texture object by index Retrieve vertex texture object by nIndex
|
|
|
Is pass disabled. Retrieves whether this pass is disabled (true) or enabled (false) for rendering
|
|
|
Is enabled. Retrieves whether this pass is enabled (true) or disabled (false) for rendering
|
|
|
Is node valid. Node valid property
Reimplemented from RmNode. |
|
|
Checks whether this pass renders to back buffer or to a target Checks whether this pass renders to back buffer or to a target
|
|
||||||||||||||||
|
Load node data from XML. Loads versioned XML node data. Note that this method will only load the contents of each node, not the data for all of the children nodes. Each child will have its own XML loading function called by the API.
Reimplemented from RmNode. Reimplemented in RmGLPass. |
|
||||||||||||
|
Save node data to XML. Saves node's contents to XML. Note that this method will only save the contents of each node, not the data for all of the children nodes. Each child will have its own XML saving function called by the API.
Reimplemented from RmNode. Reimplemented in RmGLPass. |
|
|
Set model resource. Set handle for the run-time model resource used for rendering this pass by the viewer plug-in
|
|
|
Sets the node child rule list for the given node. Sets the child addition rule list for the given node.
Reimplemented from RmNode. Reimplemented in RmGLPass. |
|
|
Set type. Compose the type string chain
Reimplemented from RmNode. |
|
||||||||||||
|
Update. Updates the internal values of the node
Reimplemented from RmNode. Reimplemented in RmGLPass. |
1.3.6