Urho.IndexBuffer Class

Hardware index buffer.

See Also: IndexBuffer

Syntax

public class IndexBuffer : UrhoObject

Requirements

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

The members of Urho.IndexBuffer are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.IndexBuffer, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.IndexBuffer 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]
DynamicBoolean. Return whether is dynamic.
[read-only]
IndexCountUInt32. Return number of indices.
[read-only]
IndexSizeUInt32. Return index size.
[read-only]
LockedBoolean. Return whether is currently locked.
[read-only]
ShadowDataByte*. Return CPU memory shadow data.
ShadowedBoolean. Return whether CPU memory shadowing is enabled.
[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

Lock(UInt32, UInt32, Boolean) : IntPtr
Lock the buffer for write-only editing. Return data pointer if successful. Optionally discard data outside the range.
OnDeviceLost()
Mark the buffer destroyed on graphics context destruction. May be a no-op depending on the API.
Release()
Release the buffer.
SetData(Int16[])
SetData(Void*) : Boolean
Set all data in the buffer.
SetDataRange(Void*, UInt32, UInt32, Boolean) : Boolean
Set a data range in the buffer. Optionally discard data outside the range.
SetSize(UInt32, Boolean, Boolean) : Boolean
Set buffer size and dynamic mode. Previous data will be lost.
Unlock()
Unlock the buffer and apply changes to the GPU buffer.