Graphics Reference
In-Depth Information
int ESUTIL_API esGenCube (float scale, GLfloat ** vertices,
GLfloat ** normals, GLfloat ** texCoords,
GLuint ** indices )
Generates geometry for a cube. Allocates memory for the vertex data and
stores the results in the arrays. Generates index list for GL_TRIANGLES .
Parameters:
Scale the size of the cube, use 1.0 for a unit cube
vertices if not NULL , will contain array of float3 positions
normals if not NULL , will contain array of float3 normals
texCoords if not NULL , will contain array of float2 texCoords
indices
if not NULL , will contain the array of indices for the
triangle list
Returns:
The number of indices required for rendering the buffers (the number
of indices stored in the indices array if it is not NULL ) as GL_TRIANGLES
int ESUTIL_API esGenSquareGrid (int size, GLfloat ** vertices,
GLuint ** indices )
Generates a square grid consisting of triangles. Allocates memory for
the vertex data and stores the results in the arrays. Generates index list
for GL_TRIANGLES .
Parameters:
Scale the size of the cube, use 1.0 for a unit cube
vertices if not NULL , will contain array of float3 positions
indices if not NULL , will contain the array of indices for the triangle list
Returns:
The number of indices required for rendering the buffers (the number
of indices stored in the indices array if it is not NULL ) as GL_TRIANGLES
void ESUTIL_API esLogMessage (const char * formatStr, ...)
Log a message to the debug output for the platform.
Parameters:
formatStr format string for error log
 
 
Search WWH ::




Custom Search