| SceneChangedEventArgsCreate Method |
Creates an instance of the
SceneChangedEventArgs class. (This method reuses a
previously recycled instance or allocates a new instance if necessary.)
Namespace: DigitalRune.Graphics.SceneGraphAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public static SceneChangedEventArgs Create(
SceneNode sceneNode,
SceneChanges changes
)
Public Shared Function Create (
sceneNode As SceneNode,
changes As SceneChanges
) As SceneChangedEventArgs
public:
static SceneChangedEventArgs^ Create(
SceneNode^ sceneNode,
SceneChanges changes
)
static member Create :
sceneNode : SceneNode *
changes : SceneChanges -> SceneChangedEventArgs
Parameters
- sceneNode
- Type: DigitalRune.Graphics.SceneGraphSceneNode
The scene node. - changes
- Type: DigitalRune.Graphics.SceneGraphSceneChanges
The changes.
Return Value
Type:
SceneChangedEventArgs
A new or reusable instance of the
SceneChangedEventArgs class.
Exceptions Remarks
This method tries to obtain a previously recycled instance from a resource pool if resource
pooling is enabled (see ResourcePool.Enabled). If no
object is available, a new instance is automatically allocated on the heap.
The owner of the object should call Recycle when the instance is no longer
needed.
See Also