|
wavelength 1.0.0
|
The set_mat action, which changes the colours, the alpha, and the stages of a material. More...
#include <setmataction.h>


Public Member Functions | |
| ~SetMatAction () override=default | |
| Destroy the object. | |
| SetMatAction (DataArray *pAction) | |
| Read the action. | |
| void | Exec () override |
| Write the values the node set into the material. | |
| Public Member Functions inherited from TriggerAction | |
| virtual | ~TriggerAction () |
| Release the action. | |
| virtual bool | Poll () |
| Advance an action that TriggerMgr::AddRunning() received. | |
| void | Start () |
| Run the action now, or schedule it when it has a delay. | |
| float | GetDelay () const |
| void | SetDelay (float fDelay) |
| Set the time on the clock of the action before Exec() runs. | |
| int | GetClock () const |
| void | SetClock (int nClock) |
| Set the TriggerMgr::Clock the action runs on. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from TriggerAction | |
| static TriggerAction * | New (DataArray *pAction) |
| Build the action a node describes. | |
| Static Protected Member Functions inherited from TriggerAction | |
| template<class T> | |
| static T * | FindObject (DataArray *pAction, const char *pszName) |
| Find a renderer object of a class by name, warning when there is none. | |
The set_mat action, which changes the colours, the alpha, and the stages of a material.
The RTTI records the class as deriving from TriggerAction. The object is 0x70 bytes. Node 1 names the material. The optional values are base_color, light_color, edge_color, alpha, the blend of each of the first three stages (blend1 through blend3), and the texture of each (tex1 through tex3).
|
overridedefault |
Destroy the object.
|
explicit |
Read the action.
A stage value for a stage the material does not have produces a warning.
| pAction | The node. |
|
overridevirtual |
Write the values the node set into the material.
Implements TriggerAction.