Urho.StaticModel Class

Static model component.

See Also: StaticModel

Syntax

public class StaticModel : Drawable

Requirements

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

The members of Urho.StaticModel are listed below.

See Also: Drawable

Public Constructors

Constructs a new instance of Urho.StaticModel which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.StaticModel, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.StaticModel 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

ModelModel. Return model. Or Set model.
[read-only]
ModelAttrResourceRef. Return model attribute.
[read-only]
NumGeometriesUInt32. Return number of geometries.
[read-only]
override
NumOccluderTrianglesUInt32. Return number of occlusion geometry triangles.
OcclusionLodLevelUInt32. Return occlusion LOD level. Or Set occlusion LOD level. By default (M_MAX_UNSIGNED) same as visible.
[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

ApplyMaterialList(String)
Apply default materials from a material list file. If filename is empty (default), the model's resource name with extension .txt will be used.
override
DrawOcclusion(OcclusionBuffer) : Boolean
Draw to occlusion buffer. Return true if did not run out of triangles.
override
GetLodGeometry(UInt32, UInt32) : Geometry
Return the geometry for a specific LOD level.
GetMaterial(UInt32) : Material
Return material by geometry index.
IsInside(Vector3) : Boolean
Determines if the given world space point is within the model geometry.
IsInsideLocal(Vector3) : Boolean
Determines if the given local space point is within the model geometry.
static
RegisterObject(Context)
Register object factory. Drawable must be registered first.
SetMaterial(Material)
Set material on all geometries.
SetMaterial(UInt32, Material) : Boolean
Set material on one geometry. Return true if successful.