Class VertexBuffer
Definition
- Assembly:
- Tizen.NUI.dll
VertexBuffer is a handle to an object that contains a buffer of structured data.
VertexBuffers can be used to provide data to Geometry objects.
public class VertexBuffer : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceVertexBuffer(PropertyMap)
Creates a VertexBuffer.
Declaration
public VertexBuffer(PropertyMap bufferFormat)
Parameters
Type | Name | Description |
---|---|---|
PropertyMap | bufferFormat | The map of names and types that describes the components of the buffer. |
Methods
View SourceGetSize()
Gets the number of elements in the buffer.
Declaration
public uint GetSize()
Returns
Type | Description |
---|---|
uint | Number of elements in the buffer. |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
View SourceSetData<VertexType>(VertexType[])
Updates the whole buffer information.
This function expects an array of structures with the same format that was given in the construction.
Declaration
public void SetData<VertexType>(VertexType[] vertices) where VertexType : struct
Parameters
Type | Name | Description |
---|---|---|
VertexType[] | vertices | The vertex data that will be copied to the buffer. |
Type Parameters
Name | Description |
---|---|
VertexType |
Implements
System.IDisposable