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.
public class Geometry : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
Constructors
View SourceGeometry()
Create an instance of Geometry.
Declaration
public Geometry()
API Level: 3
Methods
View SourceAddVertexBuffer(PropertyBuffer)
Adds a PropertyBuffer to be used as source of geometry vertices.
Declaration
public uint AddVertexBuffer(PropertyBuffer vertexBuffer)
Parameters
Type | Name | Description |
---|---|---|
PropertyBuffer | vertexBuffer | PropertyBuffer to be used as source of geometry vertices. |
Returns
Type | Description |
---|---|
UInt32 | Index of the newly added buffer. |
API Level: 3
View SourceAddVertexBuffer(VertexBuffer)
Adds a VertexBuffer to be used as source of geometry vertices.
Declaration
public uint AddVertexBuffer(VertexBuffer vertexBuffer)
Parameters
Type | Name | Description |
---|---|---|
VertexBuffer | vertexBuffer | VertexBuffer to be used as source of geometry vertices. |
Returns
Type | Description |
---|---|
UInt32 | Index of the newly added buffer. |
API Level: 8
View SourceGetNumberOfVertexBuffers()
Retrieves the number of vertex buffers that have been added to this geometry.
Declaration
public uint GetNumberOfVertexBuffers()
Returns
Type | Description |
---|---|
UInt32 | Number of vertex buffers that have been added to this geometry. |
API Level: 3
View SourceGetType()
Gets the type of primitives this geometry contains.
Declaration
public Geometry.Type GetType()
Returns
Type | Description |
---|---|
Geometry.Type | Type of primitives this geometry contains. |
API Level: 3
View SourceRemoveVertexBuffer(UInt32)
Removes a vertex buffer.
Declaration
public void RemoveVertexBuffer(uint index)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | index | Index to the vertex buffer to remove. |
API Level: 3
View SourceSetIndexBuffer(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
public void SetIndexBuffer(ushort[] indices, uint count)
Parameters
Type | Name | Description |
---|---|---|
UInt16[] | indices | Array of indices. |
UInt32 | count | Number of indices in the array. |
API Level: 3
View SourceSetType(Geometry.Type)
Sets the type of primitives this geometry contains.
Declaration
public void SetType(Geometry.Type geometryType)
Parameters
Type | Name | Description |
---|---|---|
Geometry.Type | geometryType | Array of indices. |