Urho.StaticModel Class

Static model component.

See Also: StaticModel


public class StaticModel : Drawable


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

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.
ModelAttrResourceRef. Return model attribute.
NumGeometriesUInt32. Return number of geometries.
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.
TypeStringHash. Urho's type system type.
TypeNameString. Urho's low-level type name.
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

Apply default materials from a material list file. If filename is empty (default), the model's resource name with extension .txt will be used.
DrawOcclusion(OcclusionBuffer) : Boolean
Draw to occlusion buffer. Return true if did not run out of triangles.
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.
Register object factory. Drawable must be registered first.
Set material on all geometries.
SetMaterial(UInt32, Material) : Boolean
Set material on one geometry. Return true if successful.