CSLXSIMaterial Class Reference
Base class to describe a Material for dotXSI 5.0+ (see the XSI_Material template reference).
More...#include <XSIMaterial.h>
Inheritance diagram for CSLXSIMaterial:
List of all members.
Detailed Description
Base class to describe a Material for dotXSI 5.0+ (see the XSI_Material template reference).
The role of this class is to help build a shader tree that describes an effect. They are containers of CSLXSIShader objects and CSLConnectionPoint objects.
- Tip:
- To get more information on Materials, see the Autodesk Softimage documentation on the render tree and the Realtime Shaders SDK documentation.
- Since:
- dotXSI 3.6
Constructor & Destructor Documentation
Constructor
- Parameters:
-
| [in] |
in_pScene |
Parent scene |
| [in] |
in_pModel |
Parent model |
| [in] |
in_pTemplate |
Refered template |
Member Function Documentation
Returns the type of this template
- Return values:
-
Implements CSLTemplate.
Commits the current template information
- Returns:
- Whether or not the commit was successful
Reimplemented from CSLBaseMaterial.
Searches for a parameter
- Parameters:
-
| [in] |
in_szName |
Name of the parameter to look for |
- Returns:
- Pointer to the found parameter, null otherwise
Reimplemented from CSLTemplate.
Adds a connection point to the connection point list
- Returns:
- Pointer to the newly added connection point
| SI_Error RemoveConnectionPoint |
( |
SI_Int |
in_nIndex |
) |
|
Removes a connection point from the connection point list
- Parameters:
-
| [in] |
in_nIndex |
Index of the connection point to remove |
- Returns:
- Whether or not the connection point could be removed
Removes a connection point from the connection point list
- Parameters:
-
| [in] |
in_pToRemove |
Pointer to the connection point to remove |
- Returns:
- Whether or not the connection point could be removed
Removes all connections points from the connection point list
- Returns:
- Whether or not the list could be cleared
Adds an exisiting connection point to the connection point list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the connection point to add |
- Returns:
- The added connection point or null if it already exists in the list
Returns a pointer to the internally-stored connection point pointer list
- Returns:
- Pointer to the list
| SI_Int GetConnectionPointCount |
( |
|
) |
|
Returns the total number of connection points
- Returns:
- Number of connection points
Adds a shader to the shader list
- Returns:
- to the newly added shader
| SI_Error RemoveShader |
( |
SI_Int |
in_nIndex |
) |
|
Removes a shader from the shader list
- Parameters:
-
| [in] |
in_nIndex |
Index of the shader to remove |
- Returns:
- Whether or not the shader could be removed
Removes a shader from the shader list
- Parameters:
-
| [in] |
in_pToRemove |
Pointer to the shader to remove |
- Returns:
- Whether or not the shader could be removed
Removes all connections points from the shader list
- Returns:
- Whether or not the list could be cleared
Adds an exisiting shader to the shader list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the shader to add |
- Returns:
- The added shader or null if it already exists in the list
Returns a pointer to the internally-stored shader pointer list
- Returns:
- Pointer to the list
| SI_Int GetShaderCount |
( |
|
) |
|
Returns the total number of Shaders
- Returns:
- Number of Shaders
Searches for a given shader
- Parameters:
-
| [in] |
in_szShaderName |
Name of the shader to look for |
- Returns:
- Pointer to the shader or null if it cannot be found
Creates a new material info
- Returns:
- The new material info or null if there's already one
Destroys the material info
- Returns:
- Whether or not the material info could be destroyed
Connects an exisiting material info
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the material info to use |
- Returns:
- The added material info or null if there's already one
Returns a pointer to the material info
- Returns:
- Pointer to the material info
Adds a multi port connection to the multi port connection list
- Returns:
- The added multi port connection
| SI_Error RemoveMultiPortConnection |
( |
SI_Int |
in_nIndex |
) |
|
Removes a multi port connection from the multi port connection list
- Parameters:
-
| [in] |
in_nIndex |
Index of the multi port connection to remove |
Removes a multi port connection from the multi port connection list
- Parameters:
-
| [in] |
in_pToRemove |
The multi port connection to remove |
Returns the CSLXSIShaderMultiPortConnection object of a given multi port connection by index.
- Parameters:
-
| [in] |
in_nIndex |
Index of the multi port connection to get |
- Returns:
- The CSLXSIShaderMultiPortConnection that holds the name and the type of a multi port connection.
Returns the CSLXSIShaderMultiPortConnection object of a given multi port connection by parameter name.
- Parameters:
-
| [in] |
in_pParameter |
Name of the multi port connection parameter you're looking for |
- Returns:
- Pointer to the CSLXSIShaderMultiPortConnection found or NULL ff not found
| SI_Int GetMultiPortConnectionCount |
( |
|
) |
|
Returns the number of multi port connection in the multi port connection list
- Returns:
- The number of multi port connection in the multi port connection list
Deletes all the multi port connection form the multi port connection list
Returns a pointer to the internally-stored multi port connection pointer list
- Returns:
- Pointer to the list
Adds an exisiting multi port connection to the multi port connection list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the multi port connection to add |
- Returns:
- The added multi port connection
Searches the multi port connection list for one with a corresponding parameter name
- Parameters:
-
| [in] |
in_pName |
The parameter name to look for |
- Returns:
- Pointer on the multi port connection if found, NULL if not found
Adds a texture layer to the texture layer list
- Returns:
- The added texture layer
| SI_Error RemoveTextureLayer |
( |
SI_Int |
in_nIndex |
) |
|
Removes a texture layer from the texture layer list
- Parameters:
-
| [in] |
in_nIndex |
Index of the texture layer to remove |
Removes a texture layer from the texture layer list
- Parameters:
-
| [in] |
in_pToRemove |
The texture layer to remove |
Returns the CSLXSITextureLayer object by index.
- Parameters:
-
| [in] |
in_nIndex |
Index of the texture layer to get |
- Returns:
- The CSLXSITextureLayer.
Searches the texture layer list for one with a corresponding order index
- Parameters:
-
| [in] |
in_nOrder |
The order index of the texture layer to look for |
- Returns:
- Pointer on the texture layer if found, NULL if not found
| SI_Int GetTextureLayerCount |
( |
|
) |
|
Returns the number of texture layer in the texture layer list
- Returns:
- The number of texture layer in the texture layer list
Deletes all the texture layer form the texture layer list
Returns a pointer to the internally-stored texture layer pointer list
- Returns:
- Pointer to the list
Adds an exisiting texture layer to the texture layer list
- Parameters:
-
| [in] |
in_pToConnect |
Pointer to the texture layer to add |
- Returns:
- The added texture layer
The documentation for this class was generated from the following file: