Class RenderGraph<IOptions>
Constructors
constructor
- new RenderGraph<IOptions>(_name: string, _options: IOptions): RenderGraph<IOptions>
-
Type parameters
Parameters
-
_name: string
-
_options: IOptions
Events
onActive
-
Parameters
Returns void
onCamerasChange
- onCamerasChange(cameras: default[], changeCameras: default[]): void
-
Parameters
-
cameras: default[]
-
changeCameras: default[]
Returns void
onDisable
-
Parameters
Returns void
onExecuteBegin
- onExecuteBegin(context: RenderSystem, options: IOptions): void
-
Parameters
Returns void
onExecuteDone
- onExecuteDone(context: RenderSystem, options: IOptions): void
-
Parameters
Returns void
Accessors
context
-
game
-
name
-
Returns string
Methods
connect
- connect<TToNode>(from: TRGNodeAny, to: TToNode, inputKey?: keyof TToNode["inputTypes"]): void
-
Type parameters
-
TToNode: RGNode<any, any, any, TToNode>
Parameters
-
from: TRGNodeAny
-
to: TToNode
-
Optional inputKey: keyof TToNode["inputTypes"]
Returns void
createNode
- createNode<TRGNode>(name: string, clz: new (...args: any) => TRGNode, options: TRGNode["options"]): TRGNode
-
Type parameters
-
TRGNode: RGNode<any, any, any, TRGNode>
Parameters
-
name: string
-
clz: new (...args: any) => TRGNode
-
- new (...args: any): TRGNode
-
Parameters
Returns TRGNode
-
options: TRGNode["options"]
Returns TRGNode
destroyNode
- destroyNode(rgNode: TRGNodeAny): void
-
Parameters
Returns void
disconnect
- disconnect(from: TRGNodeAny, to: TRGNodeAny): void
-
Parameters
-
from: TRGNodeAny
-
to: TRGNodeAny
Returns void
showDebugInfo
- showDebugInfo(callback?: (digraph: IDigraphNode[], sorted: TRGNodeAny[]) => void): string
-
Parameters
-
Optional callback: (digraph: IDigraphNode[], sorted: TRGNodeAny[]) => void
-
- (digraph: IDigraphNode[], sorted: TRGNodeAny[]): void
-
Parameters
-
digraph: IDigraphNode[]
-
sorted: TRGNodeAny[]
Returns void
Returns string
渲染图。