#include <xsi_graphicsequencer.h>
Public Member Functions |
|
| CGraphicSequencer () | |
| ~CGraphicSequencer () | |
| CStatus | RegisterDisplayCallback (const CString &in_szName, const LONG in_lStateFlags, const siDisplayCallback in_eType, const siViewMode in_eViewMode, const CString &in_szCustomViewModeName) const |
| CStatus | RegisterPassCallback (const CString &in_szPassName, const LONG in_lStateFlags, const LONG in_lPassFlags, const CString &in_szRelativePassName) const |
| CStatus | RenderSceneUsingMode (const siViewMode in_eViewMode, INT in_lRenderFlags) const |
| CStatus | RenderSceneUsingMaterial (const CString &in_szShaderName, INT in_lRenderFlags) const |
| CStatus | RenderListUsingMode (const CRefArray &in_pObjectList, const siViewMode in_eViewMode) const |
| CStatus | RenderListUsingMaterial (const CRefArray &in_pObjectList, const CString &in_szShaderName) const |
| CStatus | GetNbStates (siXGSStateType in_eType, INT *out_pNbStates) const |
| CStatus | DeleteState (siXGSStateType in_eType, const CString &in_pID) const |
| CStatus | CreateState (siXGSStateType in_eType, const CString &in_pID, void *in_pValuePtr, void **out_pStateHandle) const |
| CStatus | GetStateHandle (siXGSStateType in_eType, const CString &in_pID, void **out_pStateHandle) const |
| CStatus | GetStateValue (siXGSStateType in_eType, void *in_lStateHandle, void *out_pStateValue) const |
| CStatus | SetStateValue (siXGSStateType in_eType, void *in_lStateHandle, void *in_pStateValue) const |
| CStatus | GetSceneDirtyFlag (bool *out_bBool) const |
| CStatus | GetContextFlags (LONG *out_lFlags) const |
| CRef | GetCamera () const |
You cannot instantiate a CGraphicSequencer object directly. Rather, you receive an instance when your XGS plug-ins are called; that is, in a Custom Display callback or a Custom OpenGL Pass.
Default constructor.
| ~CGraphicSequencer | ( | ) |
Default destructor.
| CStatus RegisterDisplayCallback | ( | const CString & | in_szName, | |
| const LONG | in_lStateFlags, | |||
| const siDisplayCallback | in_eType, | |||
| const siViewMode | in_eViewMode, | |||
| const CString & | in_szCustomViewModeName | |||
| ) | const |
Registers a new Display callback with the OGS.
| in_szName | The display callback name | |
| in_lStateFlags | The callback state flags | |
| in_eType | The type of callback (see siDisplayCallback) | |
| in_eViewMode | The view mode (see siViewMode) | |
| in_szCustomViewModeName | The name to use for the new custom view mode |
CStatus::Fail if the registration failed
| CStatus RegisterPassCallback | ( | const CString & | in_szPassName, | |
| const LONG | in_lStateFlags, | |||
| const LONG | in_lPassFlags, | |||
| const CString & | in_szRelativePassName | |||
| ) | const |
Registers a new Pass callback with the OGS.
| in_szPassName | The pass callback name | |
| in_lStateFlags | The callback state flags | |
| in_lPassFlags | The pass callback flags | |
| in_szRelativePassName | The name of the pass used for relative insertion. |
CStatus::Fail if the registration failed
| CStatus RenderSceneUsingMode | ( | const siViewMode | in_eViewMode, | |
| INT | in_lRenderFlags | |||
| ) | const |
Renders the scene using the specified legacy mode.
| in_eViewMode | The legacy mode to use | |
| in_lRenderFlags | The render flags to use (one of the siXGSRenderFlag values) |
CStatus::Fail if the registration failed or if the mode was not found
Renders the scene using the specified Shader material.
| in_szShaderName | The name of the Shader to use for rendering | |
| in_lRenderFlags | The render flags to use (one of the siXGSRenderFlag values) |
CStatus::Fail if the registration failed or if the material was invalid
| CStatus RenderListUsingMode | ( | const CRefArray & | in_pObjectList, | |
| const siViewMode | in_eViewMode | |||
| ) | const |
Renders a list of objects using the specified legacy mode.
| in_pObjectList | The list of objects to draw (array of references to objects) | |
| in_eViewMode | The legacy mode to use |
CStatus::Fail if the registration failed or if the mode was not found
| CStatus RenderListUsingMaterial | ( | const CRefArray & | in_pObjectList, | |
| const CString & | in_szShaderName | |||
| ) | const |
Renders a list of objects using a specific Shader material.
| in_pObjectList | The list of objects to draw (array of references to objects) | |
| in_szShaderName | The name of the Shader to use for rendering |
CStatus::Fail if the registration failed or if the mode was not found
| CStatus GetNbStates | ( | siXGSStateType | in_eType, | |
| INT * | out_pNbStates | |||
| ) | const |
Returns the number of states matching the specified type.
| in_eType | The state type to count (one of the siXGSStateType values) |
| out_pNbStates | Pointer to an integer holding the number of states |
CStatus::Fail if the arguments are invalid
| CStatus DeleteState | ( | siXGSStateType | in_eType, | |
| const CString & | in_pID | |||
| ) | const |
Deletes a state by its identification (CString).
| in_eType | The state type to delete (one of the siXGSStateType values) | |
| in_pID | String identifying the state |
CStatus::Fail if the state was not found
| CStatus CreateState | ( | siXGSStateType | in_eType, | |
| const CString & | in_pID, | |||
| void * | in_pValuePtr, | |||
| void ** | out_pStateHandle | |||
| ) | const |
Creates a new state.
| in_eType | The state type to create (one of the siXGSStateType values) | |
| in_pID | String identifying the new state | |
| in_pValuePtr | The state value |
| out_pStateHandle | The state handle |
CStatus::Fail if the arguments are invalid
| CStatus GetStateHandle | ( | siXGSStateType | in_eType, | |
| const CString & | in_pID, | |||
| void ** | out_pStateHandle | |||
| ) | const |
Returns the state handle by its identification (CString).
| in_eType | The state type to get (one of the siXGSStateType values) | |
| in_pID | String identifying the state |
| out_pStateHandle | The state handle |
CStatus::Fail if the arguments are invalid
| CStatus GetStateValue | ( | siXGSStateType | in_eType, | |
| void * | in_lStateHandle, | |||
| void * | out_pStateValue | |||
| ) | const |
Returns the specified state's value.
| in_eType | The state type to get (one of the siXGSStateType values) | |
| in_lStateHandle | The handle to the state |
| out_pStateValue | Pointer to the state value |
CStatus::Fail if the arguments are invalid
| CStatus SetStateValue | ( | siXGSStateType | in_eType, | |
| void * | in_lStateHandle, | |||
| void * | in_pStateValue | |||
| ) | const |
Sets the specified state's value.
| in_eType | The state type to set (one of the siXGSStateType values) | |
| in_lStateHandle | The handle to the state | |
| in_pStateValue | Pointer to the state value |
CStatus::Fail if the arguments are invalid
| CStatus GetSceneDirtyFlag | ( | bool * | out_bBool | ) | const |
Indicates whether the scene has changed since the last frame.
| out_bBool | True if the scene has changed, false otherwise |
CStatus::Fail if the arguments are invalid
| CStatus GetContextFlags | ( | LONG * | out_lFlags | ) | const |
Returns a flag that indicates the context in which the rendering is occuring.
| out_lFlags | The context flags. These are bitwise flags of siXGSContextFlag values |
CStatus::Fail if the arguments are invalid
| CRef GetCamera | ( | ) | const |
Returns the current camera object which is used for the current rendering