![]() |
Mali OpenGL ES SDK v2.4.4
Mali Developer Center
Use of the code snippets present within these pages are subject to these EULA terms
|
Functions for generating cube shapes. More...
#include <CubeModel.h>
Public Types | |
| typedef std::vector< float > | coordinates_array |
Static Public Member Functions | |
| static void | getTriangleRepresentation (float scalingFactor, int *numberOfCoordinates, float **coordinates) |
| Compute coordinates of points which make up a cube. | |
| static void | getNormals (int *numberOfCoordinates, float **normals) |
| Create normals for a cube which was created with getTriangleRepresentation() function. | |
| static void | getTriangleRepresentation (float scalingFactor, coordinates_array &coordinates) |
| Compute coordinates of points which make up a cube. | |
| static void | getNormals (coordinates_array &normals) |
| Create normals for a cube which was created with getTriangleRepresentation() function. | |
Static Private Member Functions | |
| static void | append (coordinates_array &target, coordinates_array &appendee) |
| Appends content of appendee to target. | |
Functions for generating cube shapes.
| typedef std::vector<float> MaliSDK::CubeModel::coordinates_array |
|
staticprivate |
Appends content of appendee to target.
| target | Container to append data to | |
| [out] | appendee | Container to append data from |
Create normals for a cube which was created with getTriangleRepresentation() function.
| [out] | numberOfCoordinates | Number of generated coordinates. |
| [out] | normals | Deref will be used to store generated coordinates. Cannot be null. |
|
static |
Create normals for a cube which was created with getTriangleRepresentation() function.
| [out] | normals | Container will be used to store generated normal vectors. Cannot be null. |
|
static |
Compute coordinates of points which make up a cube.
| [in] | scalingFactor | Scaling factor indicating size of a cube. |
| [out] | numberOfCoordinates | Number of generated coordinates. |
| [out] | coordinates | Deref will be used to store generated coordinates. Cannot be null. |
|
static |
Compute coordinates of points which make up a cube.
| [in] | scalingFactor | Scaling factor indicating size of a cube. |
| [out] | coordinates | Container will be used to store generated coordinates. Cannot be null. |