Lines Matching defs:vertices
46 /// \param vertices If not NULL, will contain array of float3 positions
53 int ESUTIL_API esGenSphere ( int numSlices, float radius, GLfloat **vertices, GLfloat **normals,
64 if ( vertices != NULL )
65 *vertices = malloc ( sizeof(GLfloat) * 3 * numVertices );
82 if ( vertices )
84 (*vertices)[vertex + 0] = radius * sinf ( angleStep * (float)i ) *
86 (*vertices)[vertex + 1] = radius * cosf ( angleStep * (float)i );
87 (*vertices)[vertex + 2] = radius * sinf ( angleStep * (float)i ) *
93 (*normals)[vertex + 0] = (*vertices)[vertex + 0] / radius;
94 (*normals)[vertex + 1] = (*vertices)[vertex + 1] / radius;
95 (*normals)[vertex + 2] = (*vertices)[vertex + 2] / radius;
133 /// \param vertices If not NULL, will contain array of float3 positions
140 int ESUTIL_API esGenCube ( float scale, GLfloat **vertices, GLfloat **normals,
232 if ( vertices != NULL )
234 *vertices = malloc ( sizeof(GLfloat) * 3 * numVertices );
235 memcpy( *vertices, cubeVerts, sizeof( cubeVerts ) );
238 (*vertices)[i] *= scale;