OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MaliSDK::PlaneModel Class Reference

Functions for generating Plane shapes. More...

#include <PlaneModel.h>

Static Public Member Functions

static void getTriangleRepresentation (int *numberOfCoordinates, float **coordinates)
 Get coordinates of points which make up a plane. The plane is located in XZ space. More...
 
static void getTriangleRepresentationUVCoordinates (int *numberOfCoordinates, float **uvCoordinates)
 Get U/V 2D texture coordinates that can be mapped onto a plane generated from this class. More...
 
static void getNormals (int *numberOfCoordinates, float **normals)
 Get normals for plane placed in XZ space. More...
 
static void transform (Matrix transform, int numberOfCoordinates, float **coordinates)
 Transform a plane by a matrix. More...
 
static void getNormals (float **normalsPtrPtr, int *numberOfCoordinatesPtr)
 Get normals for plane placed in XZ space. More...
 
static void getTriangleRepresentation (float **coordinatesPtrPtr, int *numberOfCoordinatesPtr, int *numberOfPointsPtr, float scalingFactor)
 Get coordinates of points which make up a plane. The plane is located in XZ space. More...
 
static void getTriangleRepresentation (int *numberOfPoints, int *numberOfCoordinates, float **coordinates)
 Get coordinates of points which make up a plane. The plane is located in XZ space. More...
 
static void getTriangleRepresentationUVCoordinates (int *numberOfCoordinates, float **uvCoordinates)
 Get U/V 2D texture coordinates that can be mapped onto a plane generated from this class. More...
 
static void getNormals (int *numberOfCoordinates, float **normals)
 Get normals for plane placed in XZ space. More...
 
static void transform (Matrix transform, int numberOfCoordinates, float **coordinates)
 Transform a plane by a matrix. More...
 
static void getNormals (float **normalsPtrPtr, int *numberOfCoordinatesPtr)
 Get normals for plane placed in XZ space. More...
 
static void getTriangleRepresentation (float **coordinatesPtrPtr, int *numberOfCoordinatesPtr, float scalingFactor)
 Get coordinates of points which make up a plane. The plane is located in XZ space. More...
 
static void getNormals (float **normalsPtrPtr, int *numberOfCoordinatesPtr)
 Get normals for plane placed in XZ space. More...
 
static void getTriangleRepresentation (float **coordinatesPtrPtr, int *numberOfCoordinatesPtr, int *numberOfPointsPtr, float scalingFactor)
 Get coordinates of points which make up a plane. The plane is located in XZ space. More...
 

Static Private Attributes

static const int numberOfPointCoordinates = 4
 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...
 
static const int numberOfPointUvCoordinates = 2
 Number of coordinates for point UVs. More...
 

Detailed Description

Functions for generating Plane shapes.

Definition at line 32 of file PlaneModel.h.

Member Function Documentation

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

Get normals for plane placed in XZ space.

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

Please see header for the specification.

Definition at line 28 of file PlaneModel.cpp.

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

Get normals for plane placed in XZ space.

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

Get normals for plane placed in XZ space.

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

Get normals for plane placed in XZ space.

Parameters
[out]numberOfCoordinatesNumber of generated coordinates.
[out]normalsDeref will be used to store generated normals. Cannot be null.

Definition at line 240 of file PlaneModel.cpp.

static void MaliSDK::PlaneModel::getNormals ( int numberOfCoordinates,
float **  normals 
)
static

Get normals for plane placed in XZ space.

Parameters
[out]numberOfCoordinatesNumber of generated coordinates.
[out]normalsDeref will be used to store generated normals. Cannot be null.
void MaliSDK::PlaneModel::getTriangleRepresentation ( int numberOfCoordinates,
float **  coordinates 
)
static

Get coordinates of points which make up a plane. The plane is located in XZ space.

Triangles are made up of 4 components per vertex.

Parameters
[out]numberOfCoordinatesNumber of generated coordinates.
[out]coordinatesDeref will be used to store generated coordinates. Cannot be null.

Definition at line 117 of file PlaneModel.cpp.

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

Get coordinates of points which make up a plane. The plane is located in XZ space.

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

Please see header for the specification.

Definition at line 63 of file PlaneModel.cpp.

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

Get coordinates of points which make up a plane. The plane is located in XZ space.

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 plane.

Please see header for the specification.

Definition at line 63 of file PlaneModel.cpp.

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

Get coordinates of points which make up a plane. The plane is located in XZ space.

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

Get coordinates of points which make up a plane. The plane is located in XZ space.

Triangles are made up of 4 components per vertex.

Parameters
[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 96 of file PlaneModel.cpp.

void MaliSDK::PlaneModel::getTriangleRepresentationUVCoordinates ( int numberOfCoordinates,
float **  uvCoordinates 
)
static

Get U/V 2D texture coordinates that can be mapped onto a plane generated from this class.

Parameters
[out]numberOfCoordinatesNumber of generated coordinates.
[out]uvCoordinatesDeref will be used to store generated coordinates. Cannot be null.

Definition at line 30 of file PlaneModel.cpp.

static void MaliSDK::PlaneModel::getTriangleRepresentationUVCoordinates ( int numberOfCoordinates,
float **  uvCoordinates 
)
static

Get U/V 2D texture coordinates that can be mapped onto a plane generated from this class.

Parameters
[out]numberOfCoordinatesNumber of generated coordinates.
[out]uvCoordinatesDeref will be used to store generated coordinates. Cannot be null.
void MaliSDK::PlaneModel::transform ( Matrix  transform,
int  numberOfCoordinates,
float **  coordinates 
)
static

Transform a plane by a matrix.

Parameters
[in]transformThe transformation Matrix to apply to the plane.
[in]numberOfCoordinatesNumber of coordinates which make up the plane.
[in,out]coordinatesPointer to the verticies to be transformed. The transformed verticies will be returned in the same memory. Cannot be null.

Definition at line 281 of file PlaneModel.cpp.

static void MaliSDK::PlaneModel::transform ( Matrix  transform,
int  numberOfCoordinates,
float **  coordinates 
)
static

Transform a plane by a matrix.

Parameters
[in]transformThe transformation Matrix to apply to the plane.
[in]numberOfCoordinatesNumber of coordinates which make up the plane.
[in,out]coordinatesPointer to the verticies to be transformed. The transformed verticies will be returned in the same memory. Cannot be null.

Member Data Documentation

const int MaliSDK::PlaneModel::numberOfPointCoordinates = 4
staticprivate

Number of coordinates for a point in 3D space.

Definition at line 36 of file PlaneModel.h.

const int MaliSDK::PlaneModel::numberOfPointUvCoordinates = 2
staticprivate

Number of coordinates for point UVs.

Definition at line 42 of file PlaneModel.h.

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

Number of triangles which make up a square.

Definition at line 38 of file PlaneModel.h.

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

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

Definition at line 40 of file PlaneModel.h.


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