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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MaliSDK::CubeModel Class Reference

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.
 

Detailed Description

Functions for generating cube shapes.

Member Typedef Documentation

Member Function Documentation

void CubeModel::append ( coordinates_array &  target,
coordinates_array &  appendee 
)
staticprivate

Appends content of appendee to target.

Parameters
targetContainer to append data to
[out]appendeeContainer to append data from
void CubeModel::getNormals ( int *  numberOfCoordinates,
float **  normals 
)
static

Create normals for a cube which was created with getTriangleRepresentation() function.

Parameters
[out]numberOfCoordinatesNumber of generated coordinates.
[out]normalsDeref will be used to store generated coordinates. Cannot be null.
void CubeModel::getNormals ( coordinates_array &  normals)
static

Create normals for a cube which was created with getTriangleRepresentation() function.

Parameters
[out]normalsContainer will be used to store generated normal vectors. Cannot be null.
void CubeModel::getTriangleRepresentation ( float  scalingFactor,
int *  numberOfCoordinates,
float **  coordinates 
)
static

Compute coordinates of points which make up a cube.

Parameters
[in]scalingFactorScaling factor indicating size of a cube.
[out]numberOfCoordinatesNumber of generated coordinates.
[out]coordinatesDeref will be used to store generated coordinates. Cannot be null.
void CubeModel::getTriangleRepresentation ( float  scalingFactor,
coordinates_array &  coordinates 
)
static

Compute coordinates of points which make up a cube.

Parameters
[in]scalingFactorScaling factor indicating size of a cube.
[out]coordinatesContainer will be used to store generated coordinates. Cannot be null.

The documentation for this class was generated from the following files: