Urho.VertexBuffer Class

Hardware vertex buffer.

See Also: VertexBuffer

Syntax

public class VertexBuffer : UrhoObject

Requirements

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

The members of Urho.VertexBuffer are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.VertexBuffer, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.VertexBuffer 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]
ElementMaskElementMask. Return bitmask of vertex elements.
[read-only]
LockedBoolean. Return whether is currently locked.
[read-only]
ShadowDataByte*. Return CPU memory shadow data.
ShadowedBoolean. Controls CPU memory shadowing.
[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]
VertexCountUInt32. Return number of vertices.
[read-only]
VertexSizeUInt32. Return vertex size.

Public Methods

GetBufferHash(UInt32) : UInt64
GetElement(VertexElementSemantic, Byte) : VertexElement*
GetElement(VertexElementType, VertexElementSemantic, Byte) : VertexElement*
GetElementOffset(VertexElementSemantic, Byte) : UInt32
GetElementOffset(VertexElementType, VertexElementSemantic, Byte) : UInt32
static
GetVertexSize(ElementMask) : UInt32
Return vertex size corresponding to a vertex element mask.
HasElement(VertexElementSemantic, Byte) : Boolean
HasElement(VertexElementType, VertexElementSemantic, Byte) : Boolean
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(Single[])
SetData(Void*) : Boolean
Set all data in the buffer.
SetData(CustomGeometryVertex[])
SetDataRange(Void*, UInt32, UInt32, Boolean) : Boolean
Set a data range in the buffer. Optionally discard data outside the range.
SetSize(UInt32, ElementMask, Boolean) : Boolean
Set size and vertex elements and dynamic mode. Previous data will be lost.
Unlock()
Unlock the buffer and apply changes to the GPU buffer.