Urho.StaticModelGroup Class

Renders several object instances while culling and receiving light as one unit. Can be used as a CPU-side optimization, but note that also regular StaticModels will use instanced rendering if possible.

See Also: StaticModelGroup

Syntax

public class StaticModelGroup : StaticModel

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.StaticModelGroup are listed below.

See Also: StaticModel

Public Constructors

Constructs a new instance of Urho.StaticModelGroup which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.StaticModelGroup, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.StaticModelGroup linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

[read-only]
NumInstanceNodesUInt32. Return number of instance nodes.
[read-only]
override
NumOccluderTrianglesUInt32. Return number of occlusion geometry triangles.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

AddInstanceNode(Node)
Add an instance scene node. It does not need any drawable components of its own.
override
ApplyAttributes()
Apply attribute changes that can not be applied immediately. Called after scene load or a network update.
override
DrawOcclusion(OcclusionBuffer) : Boolean
Draw to occlusion buffer. Return true if did not run out of triangles.
GetInstanceNode(UInt32) : Node
Return instance node by index.
static
RegisterObject(Context)
Register object factory. StaticModel must be registered first.
RemoveAllInstanceNodes()
Remove all instance scene nodes.
RemoveInstanceNode(Node)
Remove an instance scene node.