Class Geometry
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
Geometry is handle to an object that can be used to define a geometric elements.
C#Copypublic class Geometry : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic Geometry()
API Level: 3
Methods
View Source
AddVertexBuffer(PropertyBuffer)
Adds a PropertyBuffer to be used as source of geometry vertices.
Declaration
C#Copypublic uint AddVertexBuffer(PropertyBuffer vertexBuffer)
Parameters
Type | Name | Description |
---|---|---|
PropertyBuffer | vertexBuffer | PropertyBuffer to be used as source of geometry vertices. |
Returns
Type | Description |
---|---|
System.UInt32 | Index of the newly added buffer. |
API Level: 3
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
API Level: 3
View Source
GetNumberOfVertexBuffers()
Retrieves the number of vertex buffers that have been added to this geometry.
Declaration
C#Copypublic uint GetNumberOfVertexBuffers()
Returns
Type | Description |
---|---|
System.UInt32 | Number of vertex buffers that have been added to this geometry. |
API Level: 3
Declaration
C#Copypublic Geometry.Type GetType()
Returns
Type | Description |
---|---|
Geometry.Type | Type of primitives this geometry contains. |
API Level: 3
Declaration
C#Copypublic void RemoveVertexBuffer(uint index)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | index | Index to the vertex buffer to remove. |
API Level: 3
View Source
SetIndexBuffer(UInt16[], UInt32)
Sets a the index data to be used as a source of indices for the geometry Setting this buffer will cause the geometry to be rendered using indices.
Declaration
C#Copypublic void SetIndexBuffer(ushort[] indices, uint count)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | indices | Array of indices. |
System.UInt32 | count | Number of indices in the array. |
API Level: 3
Declaration
C#Copypublic void SetType(Geometry.Type geometryType)
Parameters
Type | Name | Description |
---|---|---|
Geometry.Type | geometryType | Array of indices. |
API Level: 3
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable