Tizen Native API
5.0
|
Geometry is handle to an object that can be used to define a geometric elements. More...
Public Types | |
enum | Type |
Enumeration for the description of the type of geometry, used to determine how the coordinates will be used. More... | |
Public Member Functions | |
Geometry () | |
Default constructor, creates an empty handle. | |
~Geometry () | |
Destructor. | |
Geometry (const Geometry &handle) | |
Copy constructor, creates a new handle to the same object. | |
Geometry & | operator= (const Geometry &handle) |
Assignment operator, changes this handle to point at the same object. | |
std::size_t | AddVertexBuffer (PropertyBuffer &vertexBuffer) |
Adds a PropertyBuffer to be used as source of geometry vertices. | |
std::size_t | GetNumberOfVertexBuffers () const |
Retrieves the number of vertex buffers that have been added to this geometry. | |
void | RemoveVertexBuffer (std::size_t index) |
Removes a vertex buffer. The index must be between 0 and GetNumberOfVertexBuffers(). | |
void | SetIndexBuffer (const uint16_t *indices, size_t count) |
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. To unset call SetIndexBuffer with a null pointer or count 0. | |
void | SetType (Type geometryType) |
Sets the type of primitives this geometry contains. | |
Type | GetType () const |
Gets the type of primitives this geometry contains. Calling this function sets the property GEOMETRY_TYPE. | |
Geometry (Internal::Geometry *pointer) | |
The constructor. | |
Static Public Member Functions | |
static Geometry | New () |
Creates a new Geometry object. | |
static Geometry | DownCast (BaseHandle handle) |
Downcasts to a geometry. If not, the returned handle is left uninitialized. |
Geometry is handle to an object that can be used to define a geometric elements.
enum Dali::Geometry::Type |
Enumeration for the description of the type of geometry, used to determine how the coordinates will be used.
Default constructor, creates an empty handle.
Destructor.
Dali::Geometry::Geometry | ( | const Geometry & | handle | ) |
Copy constructor, creates a new handle to the same object.
[in] | handle | Handle to an object |
Dali::Geometry::Geometry | ( | Internal::Geometry * | pointer | ) | [explicit] |
The constructor.
[in] | pointer | A pointer to a newly allocated Geometry |
std::size_t Dali::Geometry::AddVertexBuffer | ( | PropertyBuffer & | vertexBuffer | ) |
Adds a PropertyBuffer to be used as source of geometry vertices.
[in] | vertexBuffer | PropertyBuffer to be used as source of geometry vertices |
static Geometry Dali::Geometry::DownCast | ( | BaseHandle | handle | ) | [static] |
std::size_t Dali::Geometry::GetNumberOfVertexBuffers | ( | ) | const |
Retrieves the number of vertex buffers that have been added to this geometry.
Type Dali::Geometry::GetType | ( | ) | const |
Gets the type of primitives this geometry contains. Calling this function sets the property GEOMETRY_TYPE.
static Geometry Dali::Geometry::New | ( | ) | [static] |
Assignment operator, changes this handle to point at the same object.
[in] | handle | Handle to an object |
void Dali::Geometry::RemoveVertexBuffer | ( | std::size_t | index | ) |
Removes a vertex buffer. The index must be between 0 and GetNumberOfVertexBuffers().
[in] | index | Index to the vertex buffer to remove |
void Dali::Geometry::SetIndexBuffer | ( | const uint16_t * | indices, |
size_t | count | ||
) |
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. To unset call SetIndexBuffer with a null pointer or count 0.
[in] | indices | Array of indices |
[in] | count | Number of indices in the array |
void Dali::Geometry::SetType | ( | Type | geometryType | ) |
Sets the type of primitives this geometry contains.
[in] | geometryType | Type of primitives this geometry contains |