Urho.VertexBuffer Class

Hardware vertex buffer.

See Also: VertexBuffer


public class VertexBuffer : UrhoObject


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

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

DynamicBoolean. Return whether is dynamic..
ElementMaskElementMask. Return bitmask of vertex elements.
LockedBoolean. Return whether is currently locked.
ShadowDataByte*. Return CPU memory shadow data.
ShadowedBoolean. Controls CPU memory shadowing.
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.
VertexCountUInt32. Return number of vertices.
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
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.
Mark the buffer destroyed on graphics context destruction. May be a no-op depending on the API.
Release the buffer.
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, ElementMask, Boolean) : Boolean
Set size and vertex elements and dynamic mode. Previous data will be lost.
Unlock the buffer and apply changes to the GPU buffer.