Urho.Drawable Class

Base class for visible components.

See Also: Drawable


public class Drawable : Component


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

The members of Urho.Drawable are listed below.

See Also: Component

Public Constructors

Constructs a new instance of Urho.Drawable, given a raw pointer to an unmanaged object

Protected Constructors

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

Public Properties

BoundingBoxBoundingBox. Return local space bounding box. May not be applicable or properly updated on all drawables.
CastShadowsBoolean. Return shadowcaster flag. Or Set shadowcaster flag.
DistanceSingle. Return distance from camera.
DrawableFlagsByte. Return drawable flags.
DrawDistanceSingle. Return draw distance. Or Set draw distance.
FirstLightLight. Return the first added per-pixel light.
InViewBoolean. Return whether is in view this frame from any viewport camera. Excludes shadow map cameras.
LightMaskUInt32. Return light mask. Or Set light mask. Is and'ed with light's and zone's light mask to see if the object should be lit.
LodBiasSingle. Return LOD bias. Or Set LOD bias.
LodDistanceSingle. Return LOD scaled distance from camera.
MaxLightsUInt32. Return maximum number of per-pixel lights. Or Set maximum number of per-pixel lights. Default 0 is unlimited.
MaxZSingle. Return the maximum view-space depth.
MinZSingle. Return the minimum view-space depth.
NumOccluderTrianglesUInt32. Return number of occlusion geometry triangles.
OccludeeBoolean. Controls the occludee flag.
OccluderBoolean. Controls the occluder flag.
OctantOctant*. Return octree octant.
ShadowDistanceSingle. Return shadow draw distance. Or Set shadow draw distance.
ShadowMaskUInt32. Return shadow mask. Or Set shadow mask. Is and'ed with light's light mask and zone's shadow mask to see if the object should be rendered to a shadow map.
SortValueSingle. Return sorting value. Or Set sorting value.
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.
UpdateGeometryTypeUpdateGeometryType. Return whether a geometry update is necessary, and if it can happen in a worker thread.
ViewMaskUInt32. Return view mask. Or Set view mask. Is and'ed with camera's view mask to see if the object should be rendered.
WorldBoundingBoxBoundingBox. Return world-space bounding box.
ZoneZone. Return current zone.
ZoneDirtyBoolean. Return whether current zone is inconclusive or dirty due to the drawable moving.
ZoneMaskUInt32. Return zone mask. Or Set zone mask. Is and'ed with zone's zone mask to see if the object should belong to the zone.

Public Methods

Adds the specified light.
Adds the specified vertex light.
DrawDebugGeometry(DebugRenderer, Boolean)
Visualize the component as debug geometry.
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.
HasBasePass(UInt32) : Boolean
Return whether has a base pass.
IsInView(Camera) : Boolean
Return whether is in view of a specific camera this frame. Pass in a null camera to allow any camera, including shadow map cameras.
Sort and limit per-pixel lights to maximum allowed. Convert extra lights into vertex lights.
Sort and limit per-vertex lights to maximum allowed.
Mark for update and octree reinsertion. Update is automatically queued when the drawable's scene node moves or changes scale.
Mark in view without specifying a camera. Used for shadow casters.
Handle enabled/disabled state change.
Register object attributes. Drawable must be registered first.
Set base pass flag for a batch.
SetMinMaxZ(Single, Single)
Set view-space depth bounds.
SetZone(Zone, Boolean)
Set new zone. Zone assignment may optionally be temporary, meaning it needs to be re-evaluated on the next frame.