Class Geometry

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    Geometry is handle to an object that can be used to define a geometric elements.

    public class Geometry : BaseHandle, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    Geometry
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Constructors

    View Source

    Geometry()

    Create an instance of Geometry.

    Declaration
    public Geometry()

    Methods

    View Source

    AddVertexBuffer(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
    uint

    Index of the newly added buffer.

    View Source

    AddVertexBuffer(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
    uint

    Index of the newly added buffer.

    View Source

    GetNumberOfVertexBuffers()

    Retrieves the number of vertex buffers that have been added to this geometry.

    Declaration
    public uint GetNumberOfVertexBuffers()
    Returns
    Type Description
    uint

    Number of vertex buffers that have been added to this geometry.

    View Source

    GetType()

    Gets the type of primitives this geometry contains.

    Declaration
    public Geometry.Type GetType()
    Returns
    Type Description
    Geometry.Type

    Type of primitives this geometry contains.

    View Source

    RemoveVertexBuffer(uint)

    Removes a vertex buffer.

    Declaration
    public void RemoveVertexBuffer(uint index)
    Parameters
    Type Name Description
    uint index

    Index to the vertex buffer to remove.

    View Source

    SetIndexBuffer(ushort[], uint)

    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
    ushort[] indices

    Array of indices.

    uint count

    Number of indices in the array.

    View Source

    SetType(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.

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX