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

Public Member Functions | |
| RmShaderConstant () | |
| Default Constructor. | |
| RmShaderConstant (const RM_TCHAR *strConstantName, const RM_TCHAR *strConstantType, int nRegister) | |
| Constructor. | |
| RmShaderConstant (RmNode *pNode, int nRegister) | |
| Constructor. | |
| virtual | ~RmShaderConstant () |
| Destructor. | |
| 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 valid. | |
| int | GetRegister () |
| void | SetRegister (int nIndex) |
| Set register. | |
| int | GetElementCount () |
| Get element counts. | |
| const RmStringT & | GetDataType () |
| Get data type. | |
| RmNode * | GetParameterNode () |
| Get Parameter Node. | |
| void | LinkToParameterNode (RmNode *pNode) |
| Link to Node. | |
Protected Member Functions | |
| virtual void | CopyNodeData (RmNode *pDestinationNode, bool bIncludeLoadedData) |
| Copy node data. | |
| 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 | |
| int | m_nRegister |
| Stores which register this constant is mapped to. | |
| RmNode * | m_pNode |
| The node that this constant is linking to. | |
| RmStringT | m_strConstantType |
| Stores type identification for constant data (matrix, vector, etc). | |
RmShaderConstant - an individual shader constant base class Contains a register nIndex into constant store, a pointer to the data to be placed into the register. The name field of base class RmNode contains the name of the constant. Each constant is a hidden node in RenderMonkey.
|
|
Default Constructor. Default constructor |
|
||||||||||||||||
|
Constructor. Create a new constant given a name of the constant, its data type and the register that the constant is mapped to. The name of the constant will match the node in the workspace that this constant will be linked to.
|
|
||||||||||||
|
Constructor. Create a new shader constant that will be linked to the specified node. Note that the node must be either a float, color, vector or a matrix variable only.
|
|
|
Destructor. Destructor |
|
|
Clone this node. Creates a clone of this node
Reimplemented from RmNode. |
|
||||||||||||
|
Copy node data. Copies this node's contents (not including children) into the destination node. See RmNode::CopyNodeData for details
Reimplemented from RmNode. |
|
|
Get data type. Retrieve constant data type
|
|
|
Returns description of the node: used for displaying a tooltip in the workspace tree view for the given node.
Reimplemented from RmNode. |
|
|
Get element counts. Retrieve number of elements that this constant holds. Note that that means that if the constant type = float, color or vector, the number of elements will be 1 (1 4D float), and for matrices it is 4 (4 4D floats)
|
|
|
Parent / Child rule list function. Retrieves the rule list for adding child nodes for a given node type
Reimplemented from RmNode. |
|
|
Get Parameter Node. Retrieve the node that this constant is connected to
|
|
|
Returns the register nIndex
|
|
|
Is valid. Node valid property True if node is valid Reimplemented from RmNode. |
|
|
Link to Node. Link this constant to a different node. Updates constant type as well
|
|
||||||||||||||||
|
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. |
|
||||||||||||
|
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. |
|
|
Sets the node child rule list for the given node. Sets the child addition rule list for the given node.
Reimplemented from RmNode. |
|
|
Set register. Set register nIndex
|
|
||||||||||||
|
Update. Updates the internal values of the node
Reimplemented from RmNode. |
1.3.6