|
SceneNodeDirtyFlags Enumeration |
SceneNodeDirtyFlags enum defines the flags that are used to mark which part of the SceneNode was changed (is dirty).
Namespace: Ab4d.SharpEngine.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax [FlagsAttribute]
public enum SceneNodeDirtyFlags
Members Member name | Value | Description |
---|
None | 0 |
None
|
ParentChanged | 1 |
ParentChanged
|
ChildAdded | 2 |
ChildAdded
|
ChildRemoved | 4 |
ChildRemoved
|
ChildChanged | 8 |
ChildChanged
|
IsVisibleChanged | 16 |
IsVisibleChanged
|
TransformChanged | 32 |
Used when Transform on this SceneNode is changed. This should not be confused with WorldMatrixChanged that is changed also if the parent's transform is changed.
|
ParentWorldMatrixChanged | 64 |
Used when WorldMatrix on a parent SceneNode has changed (usually after a transformation on parent SceneNode is changed). This indicates that child SceneNodes needs to update their world bounds.
|
WorldMatrixChanged | 128 |
Used when Transform on this or one of the parent SceneNodes is changed. This should not be confused with TransformChanged that is used only when Transform is changed on this SceneNode.
WorldMatrixChanged should not be set from NotifyChange but only from UpdateWorldMatrix method.
|
LocalBoundingBoxChanged | 256 |
The LocalBoundingBox property has changed.
|
WorldBoundingBoxChanged | 512 |
The WorldBoundingBox property has changed.
|
ChildBoundingBoxChanged | 1,024 |
BoundingBox of a child node was changed - the BoundingBox of this SceneNode need to be updated accordingly.
|
MaterialChanged | 2,048 |
MaterialChanged is used when material instance is changed. When only simple material property is changed, use the MaterialPropertiesChanged.
|
MaterialPropertiesChanged | 4,096 |
MaterialPropertiesChanged is used to notify that only simple material properties are changed and the there is not need to recollect rendering primitives. To recollect rendering primitives use the MaterialChanged value.
|
MeshVertexBufferDataChanged | 8,192 |
Used when data in VertexBuffer has changed. This change does not require to recollect rendering primitives in RenderingLayers and therefore requires that the VertexBuffer on the used RenderingPrimitive is updated.
|
MeshIndexBufferDataChanged | 16,384 |
Used when data in IndexBuffer has changed or when StartIndexLocation or IndexCount has changed. This change does not require to recollect rendering primitives in RenderingLayers and therefore requires that the VertexBuffer on the used RenderingPrimitive is updated.
|
MeshChanged | 32,768 |
Used when the whole mesh needs to be recreated. This flag recollects the rendering primitives in RenderingLayers.
|
RenderingLayerChanged | 65,536 |
Used when the rendering layer has been changed
|
OtherChange | 131,072 |
OtherChange
|
MeshDirty | 262,144 |
Usually used after a property is changed and the mesh should be regenerated.
This is usually done in the update phase. There a new mesh is generated and flag is cleared and MeshChanged flag is set.
To manually update the mesh after changing the property value call the Update method.
|
All | 524,287 |
The SceneNode is newly created or everything was changed
|
See Also