Urho.DebugRenderer Class

Debug geometry rendering component. Should be added only to the root scene node.

See Also: DebugRenderer

Syntax

public class DebugRenderer : Component

Requirements

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

The members of Urho.DebugRenderer are listed below.

See Also: Component

Public Constructors

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

LineAntiAliasBoolean. Set line antialiasing on/off. Default false.
[read-only]
ProjectionMatrix4. Return the projection transform.
[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.
[read-only]
ViewMatrix3x4. Return the view transform.

Public Methods

AddBoundingBox(BoundingBox, Color, Boolean, Boolean)
AddBoundingBox(BoundingBox, Matrix3x4, Color, Boolean, Boolean)
AddCircle(Vector3, Vector3, Single, Color, Int32, Boolean)
Add a circle.
AddCross(Vector3, Single, Color, Boolean)
Add a cross.
AddCylinder(Vector3, Single, Single, Color, Boolean)
Add a cylinder
AddLine(Vector3, Vector3, UInt32, Boolean)
Add a line with color already converted to unsigned.
AddLine(Vector3, Vector3, Color, Boolean)
Add a line.
AddNode(Node, Single, Boolean)
Add a scene node represented as its coordinate axes.
AddPolygon(Vector3, Vector3, Vector3, Vector3, UInt32, Boolean)
AddPolygon(Vector3, Vector3, Vector3, Vector3, Color, Boolean)
AddQuad(Vector3, Single, Single, Color, Boolean)
Add a quad on the XZ plane.
AddTriangle(Vector3, Vector3, Vector3, UInt32, Boolean)
Add a triangle with color already converted to unsigned.
AddTriangle(Vector3, Vector3, Vector3, Color, Boolean)
Add a triangle.
AddTriangleMesh(Void*, UInt32, Void*, UInt32, UInt32, UInt32, Matrix3x4, Color, Boolean)
Add a triangle mesh.
HasContent() : Boolean
Return whether has something to render.
IsInside(BoundingBox) : Boolean
Check whether a bounding box is inside the view frustum.
static
RegisterObject(Context)
Register object factory.
Render()
Update vertex buffer and render all debug lines. The viewport and rendertarget should be set before.
SetView(Camera)
Set the camera viewpoint. Call before rendering, or before adding geometry if you want to use culling.