Click or drag to resize
Ab4d.SharpEngine logo

RenderedNode Class

RenderedNode is a base abstract class that is used by all SceneNodes that can render its content.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public abstract class RenderedNode : SceneNode

The RenderedNode type exposes the following members.

Constructors
 NameDescription
Protected methodRenderedNode Constructor
Top
Properties
 NameDescription
Public propertyCustomRenderingLayer Gets or sets a custom RenderingLayer that will contain the RenderingItem objects created by this ObjectNode. If CustomRenderingLayer is null (by default), then the RenderingItem will be put into RenderingLayer based on the material and complexity of the mesh.
Top
Methods
 NameDescription
Public methodGetCenterPosition Returns center position of this RenderedNode. Center position is calculated from the center position of the local bounding box.
Protected methodGetRenderingLayer GetRenderingLayer
Protected methodOnCustomRenderingLayerChanged OnCustomRenderingLayerChanged( is a virtual protected method that is called when the value of the CustomRenderingLayer property is changed.
Top
Fields
 NameDescription
Protected fielddisposeMaterial When true, then Material is is disposed when this SceneNode is disposed. This is usually set to true when the Material is set by this SceneNode (for example in LineNode when user only sets LineColor and this is used to create a LineMaterial) and not when set by the user (as in ModelNode where user sets Material and BackMaterial).
Protected fielddisposeMesh When true, then Mesh is is disposed when this SceneNode is disposed. This is usually set to true when the mesh is created by this SceneNode (for example in BoxModelNode) and not set by the user (as in MeshModelNode - in this case the user should dispose the Mesh).
Top
See Also