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

Public Member Functions | |
| RmSampler () | |
| Default Constructor. | |
| RmSampler (const RM_TCHAR *strSamplerName, int nRegister) | |
| Constructor. | |
| virtual | ~RmSampler () |
| 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 node valid. | |
| void | SetRegister (int nIndex) |
| Set register. | |
| int | GetRegister () |
| Get register. | |
| RmNode * | GetTextureObject () |
| Get texture object. | |
| const RmNode * | GetTextureObject () const |
| Get texture object. | |
Protected Member Functions | |
| virtual void | CopyNodeData (RmNode *pDestinationNode, bool bIncludeLoadedData) |
| Copy node data. | |
Protected Attributes | |
| int | m_nRegister |
| Stores which register this sampler is mapped to. | |
| RmNode * | m_pTextureObject |
| Stores the reference texture object. | |
RmSampler is used for sampler declaration in HLSL shaders. This structure is used to link a texture object within the RenderMonkey workspace to a sampler object. The inherited name field specifies the name of the sampler object.
|
|
Default Constructor. Default constructor |
|
||||||||||||
|
Constructor. Creates a new sampler constant with specified name and register mapping
|
|
|
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. |
|
|
Returns description of the node: used for displaying a tooltip in the workspace tree view for the given node.
Reimplemented from RmNode. |
|
|
Get register. Register nIndex for the sampler
|
|
|
Get texture object. Returns TetxureObject that this node references
|
|
|
Get texture object. Returns TetxureObject that this node references
|
|
|
Is node valid. Node valid property
Reimplemented from RmNode. |
|
||||||||||||||||
|
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. |
|
|
Set register. Set register nIndex
|
|
||||||||||||
|
Update. Updates the internal values of the node
Reimplemented from RmNode. |
1.3.6