Class VertexBuffer

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
8

VertexBuffer is a handle to an object that contains a buffer of structured data.
VertexBuffers can be used to provide data to Geometry objects.

C#
Copy
public class VertexBuffer : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
Inheritance
System.Object
Tizen.NUI.Binding.Element
VertexBuffer
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Constructors

View Source

VertexBuffer(PropertyMap)

Creates a VertexBuffer.

Declaration
C#
Copy
public VertexBuffer(PropertyMap bufferFormat)
Parameters
Type Name Description
PropertyMap bufferFormat

The map of names and types that describes the components of the buffer.

API Level: 8

Methods

View Source

GetSize()

Gets the number of elements in the buffer.

Declaration
C#
Copy
public uint GetSize()
Returns
Type Description
System.UInt32

Number of elements in the buffer.

API Level: 8
View Source

SetData<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
C#
Copy
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
Exceptions
Type Condition
System.ArgumentNullException

Thrown when vertices is null.

API Level: 8

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable