Urho.Geometry Class

Defines one or more vertex buffers, an index buffer and a draw range.

See Also: Geometry

Syntax

public class Geometry : UrhoObject

Requirements

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

The members of Urho.Geometry are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.Geometry which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Geometry, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Geometry 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]
BufferHashUInt16. Return buffers' combined hash value for state sorting.
[read-only]
EmptyBoolean. Return whether has empty draw range.
IndexBufferIndexBuffer. Return the index buffer. Or Set the index buffer.
[read-only]
IndexCountUInt32. Return number of indices.
[read-only]
IndexStartUInt32. Return start index.
LodDistanceSingle. Return LOD distance. Or Set the LOD distance.
[read-only]
NumVertexBuffersUInt32. Return number of vertex buffers.
[read-only]
PrimitiveTypePrimitiveType. Return primitive type.
[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]
VertexBuffersIReadOnlyList<VertexBuffer>. Return all vertex buffers.
[read-only]
VertexCountUInt32. Return number of used vertices.
[read-only]
VertexStartUInt32. Return first used vertex.

Public Methods

Draw(Graphics)
Draw.
GetHitDistance(Ray, Vector3*, Vector2*) : Single
Return ray hit distance or infinity if no hit. Requires raw data to be set. Optionally return hit normal and hit uv coordinates at intersect point.
GetVertexBuffer(UInt32) : VertexBuffer
Return vertex buffer by index.
IsInside(Ray) : Boolean
Return whether or not the ray is inside geometry.
SetDrawRange(PrimitiveType, UInt32, UInt32, Boolean) : Boolean
Set the draw range.
SetDrawRange(PrimitiveType, UInt32, UInt32, UInt32, UInt32, Boolean) : Boolean
Set the draw range.
SetNumVertexBuffers(UInt32) : Boolean
Set number of vertex buffer.
SetVertexBuffer(UInt32, VertexBuffer) : Boolean