OpenGL ES SDK for Android ARM Developer Center
 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>

Static Public Member Functions

static void getTriangleRepresentation (float scalingFactor, int *numberOfCoordinates, float **coordinates)
 Compute coordinates of points which make up a cube. More...
 
static void getNormals (int *numberOfCoordinates, float **normals)
 Create normals for a cube which was created with getTriangleRepresentation() function. More...
 
static void getTriangleRepresentation (float scalingFactor, int *numberOfCoordinates, float **coordinates)
 Compute coordinates of points which make up a cube. More...
 
static void getNormals (int *numberOfCoordinates, float **normals)
 Create normals for a cube which was created with getTriangleRepresentation() function. More...
 
static void getTriangleRepresentation (float **coordinatesPtrPtr, int *numberOfCoordinatesPtr, int *numberOfPointsPtr, float scalingFactor)
 Compute coordinates of points which make up a cube shape. More...
 
static void getNormals (float **normalsPtrPtr, int *numberOfCoordinatesPtr)
 Create normals for a cube. More...
 
static void getTriangleRepresentation (float **coordinatesPtrPtr, int *numberOfCoordinatesPtr, int *numberOfPointsPtr, float scalingFactor)
 Compute coordinates of points which make up a cube shape. More...
 
static void getTriangleRepresentation (float scalingFactor, int *numberOfPoints, int *numberOfCoordinates, float **coordinates)
 Compute coordinates of points which make up a cube. More...
 
static void getNormals (int *numberOfCoordinates, float **normals)
 Create normals for a cube which was created with getTriangleRepresentation() function. More...
 
static void getNormals (float **normalsPtrPtr, int *numberOfCoordinatesPtr)
 Create normals for a cube. More...
 
static void getTriangleRepresentation (float **coordinatesPtrPtr, int *numberOfCoordinatesPtr, float scalingFactor)
 Compute coordinates of points which make up a cube shape. More...
 
static void getNormals (float **normalsPtrPtr, int *numberOfCoordinatesPtr)
 Create normals for a cube. More...
 
static void getTriangleRepresentation (float **coordinatesPtrPtr, int *numberOfCoordinatesPtr, int *numberOfPointsPtr, float scalingFactor)
 Compute coordinates of points which make up a cube shape. More...
 

Static Private Attributes

static const int numberOfCubeFaces = 6
 Number of cube faces. More...
 
static const int numberOfPointCoordinates = 3
 Number of coordinates for a point in 3D space. More...
 
static const int numberOfSquareTriangles = 2
 Number of triangles which make up a square. More...
 
static const int numberOfTrianglePoints = 3
 number of points that make up a shape of a triangle. More...
 

Detailed Description

Functions for generating cube shapes.

Definition at line 31 of file CubeModel.h.

Member Function Documentation

void MaliSDK::CubeModel::getNormals ( float **  normalsPtrPtr,
int numberOfCoordinatesPtr 
)
static

Create normals for a cube.

Parameters
normalsPtrPtrDeref will be used to store generated coordinates. Cannot be null.
numberOfCoordinatesPtrNumber of generated coordinates.

Please see header for the specification.

Definition at line 29 of file CubeModel.cpp.

static void MaliSDK::CubeModel::getNormals ( float **  normalsPtrPtr,
int numberOfCoordinatesPtr 
)
static

Create normals for a cube.

Parameters
normalsPtrPtrDeref will be used to store generated coordinates. Cannot be null.
numberOfCoordinatesPtrNumber of generated coordinates.
static void MaliSDK::CubeModel::getNormals ( float **  normalsPtrPtr,
int numberOfCoordinatesPtr 
)
static

Create normals for a cube.

Parameters
normalsPtrPtrDeref will be used to store generated coordinates. Cannot be null.
numberOfCoordinatesPtrNumber of generated coordinates.
void MaliSDK::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.

Definition at line 356 of file CubeModel.cpp.

static void MaliSDK::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.
static void MaliSDK::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 MaliSDK::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.

Definition at line 29 of file CubeModel.cpp.

void MaliSDK::CubeModel::getTriangleRepresentation ( float **  coordinatesPtrPtr,
int numberOfCoordinatesPtr,
int numberOfPointsPtr,
float  scalingFactor 
)
static

Compute coordinates of points which make up a cube shape.

Parameters
coordinatesPtrPtrDeref will be used to store generated coordinates. Cannot be null.
numberOfCoordinatesPtrNumber of generated coordinates.
numberOfPointsPtrNumber of generated points.
scalingFactorScaling factor indicating size of a cube.

Please see header for the specification.

Definition at line 30 of file CubeModel.cpp.

static void MaliSDK::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 MaliSDK::CubeModel::getTriangleRepresentation ( float  scalingFactor,
int numberOfPoints,
int numberOfCoordinates,
float **  coordinates 
)
static

Compute coordinates of points which make up a cube.

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

Definition at line 28 of file CubeModel.cpp.

void MaliSDK::CubeModel::getTriangleRepresentation ( float **  coordinatesPtrPtr,
int numberOfCoordinatesPtr,
float  scalingFactor 
)
static

Compute coordinates of points which make up a cube shape.

Parameters
coordinatesPtrPtrDeref will be used to store generated coordinates. Cannot be null.
numberOfCoordinatesPtrNumber of generated coordinates.
scalingFactorScaling factor indicating size of a cube.

Please see header for the specification.

Definition at line 110 of file CubeModel.cpp.

static void MaliSDK::CubeModel::getTriangleRepresentation ( float **  coordinatesPtrPtr,
int numberOfCoordinatesPtr,
int numberOfPointsPtr,
float  scalingFactor 
)
static

Compute coordinates of points which make up a cube shape.

Parameters
coordinatesPtrPtrDeref will be used to store generated coordinates. Cannot be null.
numberOfCoordinatesPtrNumber of generated coordinates.
numberOfPointsPtrNumber of generated points.
scalingFactorScaling factor indicating size of a cube.
static void MaliSDK::CubeModel::getTriangleRepresentation ( float **  coordinatesPtrPtr,
int numberOfCoordinatesPtr,
int numberOfPointsPtr,
float  scalingFactor 
)
static

Compute coordinates of points which make up a cube shape.

Parameters
coordinatesPtrPtrDeref will be used to store generated coordinates. Cannot be null.
numberOfCoordinatesPtrNumber of generated coordinates.
numberOfPointsPtrNumber of generated points.
scalingFactorScaling factor indicating size of a cube.

Member Data Documentation

const int MaliSDK::CubeModel::numberOfCubeFaces = 6
staticprivate

Number of cube faces.

Definition at line 35 of file CubeModel.h.

const int MaliSDK::CubeModel::numberOfPointCoordinates = 3
staticprivate

Number of coordinates for a point in 3D space.

Definition at line 37 of file CubeModel.h.

const int MaliSDK::CubeModel::numberOfSquareTriangles = 2
staticprivate

Number of triangles which make up a square.

Definition at line 39 of file CubeModel.h.

const int MaliSDK::CubeModel::numberOfTrianglePoints = 3
staticprivate

number of points that make up a shape of a triangle.

Definition at line 41 of file CubeModel.h.


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