OpenGL ES SDK for Android
ARM Developer Center
|
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... | |
Functions for generating Plane shapes.
Definition at line 32 of file PlaneModel.h.
|
static |
Get normals for plane placed in XZ space.
normalsPtrPtr | Deref will be used to store generated normals. Cannot be null. |
numberOfCoordinatesPtr | Number of generated coordinates. |
Please see header for the specification.
Definition at line 28 of file PlaneModel.cpp.
|
static |
Get normals for plane placed in XZ space.
normalsPtrPtr | Deref will be used to store generated normals. Cannot be null. |
numberOfCoordinatesPtr | Number of generated coordinates. |
|
static |
Get normals for plane placed in XZ space.
normalsPtrPtr | Deref will be used to store generated normals. Cannot be null. |
numberOfCoordinatesPtr | Number of generated coordinates. |
Get normals for plane placed in XZ space.
[out] | numberOfCoordinates | Number of generated coordinates. |
[out] | normals | Deref will be used to store generated normals. Cannot be null. |
Definition at line 240 of file PlaneModel.cpp.
Get normals for plane placed in XZ space.
[out] | numberOfCoordinates | Number of generated coordinates. |
[out] | normals | Deref will be used to store generated normals. Cannot be null. |
|
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.
[out] | numberOfCoordinates | Number of generated coordinates. |
[out] | coordinates | Deref will be used to store generated coordinates. Cannot be null. |
Definition at line 117 of file PlaneModel.cpp.
|
static |
Get coordinates of points which make up a plane. The plane is located in XZ space.
coordinatesPtrPtr | Deref will be used to store generated coordinates. Cannot be null. |
numberOfCoordinatesPtr | Number of generated coordinates. |
scalingFactor | Scaling factor indicating size of a plane. |
Please see header for the specification.
Definition at line 63 of file PlaneModel.cpp.
|
static |
Get coordinates of points which make up a plane. The plane is located in XZ space.
coordinatesPtrPtr | Deref will be used to store generated coordinates. Cannot be null. |
numberOfCoordinatesPtr | Number of generated coordinates. |
numberOfPointsPtr | Number of generated points. |
scalingFactor | Scaling factor indicating size of a plane. |
Please see header for the specification.
Definition at line 63 of file PlaneModel.cpp.
|
static |
Get coordinates of points which make up a plane. The plane is located in XZ space.
coordinatesPtrPtr | Deref will be used to store generated coordinates. Cannot be null. |
numberOfCoordinatesPtr | Number of generated coordinates. |
numberOfPointsPtr | Number of generated points. |
scalingFactor | Scaling factor indicating size of a plane. |
|
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.
[out] | numberOfPoints | Number of generated points. |
[out] | numberOfCoordinates | Number of generated coordinates. |
[out] | coordinates | Deref will be used to store generated coordinates. Cannot be null. |
Definition at line 96 of file PlaneModel.cpp.
|
static |
Get U/V 2D texture coordinates that can be mapped onto a plane generated from this class.
[out] | numberOfCoordinates | Number of generated coordinates. |
[out] | uvCoordinates | Deref will be used to store generated coordinates. Cannot be null. |
Definition at line 30 of file PlaneModel.cpp.
|
static |
Get U/V 2D texture coordinates that can be mapped onto a plane generated from this class.
[out] | numberOfCoordinates | Number of generated coordinates. |
[out] | uvCoordinates | Deref will be used to store generated coordinates. Cannot be null. |
|
static |
Transform a plane by a matrix.
[in] | transform | The transformation Matrix to apply to the plane. |
[in] | numberOfCoordinates | Number of coordinates which make up the plane. |
[in,out] | coordinates | Pointer 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 |
Transform a plane by a matrix.
[in] | transform | The transformation Matrix to apply to the plane. |
[in] | numberOfCoordinates | Number of coordinates which make up the plane. |
[in,out] | coordinates | Pointer to the verticies to be transformed. The transformed verticies will be returned in the same memory. Cannot be null. |
|
staticprivate |
Number of coordinates for a point in 3D space.
Definition at line 36 of file PlaneModel.h.
|
staticprivate |
Number of coordinates for point UVs.
Definition at line 42 of file PlaneModel.h.
|
staticprivate |
Number of triangles which make up a square.
Definition at line 38 of file PlaneModel.h.
|
staticprivate |
number of points that make up a shape of a triangle.
Definition at line 40 of file PlaneModel.h.