![]() |
Mali OpenGL ES SDK v2.4.4
Mali Developer Center
Use of the code snippets present within these pages are subject to these EULA terms
|
#include <MGeometryTorus.h>
Public Types | |
| typedef MGeometryBase | BaseClass |
| typedef MArray< MVector3f > | MArrayVec3f |
Public Member Functions | |
| MGeometryTorus () | |
| virtual | ~MGeometryTorus () |
| void | set (float aRadiusOrbit, float aRadiusRing, unsigned int aHorizontal, unsigned int aVertical) |
Public Member Functions inherited from MGeometryBase | |
| MGeometryBase () | |
| virtual | ~MGeometryBase () |
| const MRendererPrimitive & | getPrimitive () const |
| The method returns the read-only primitive. | |
| MRendererPrimitive & | getPrimitive () |
| The method returns the read-write primitive. A user can modify the shape of primitive. | |
| virtual void | render (const MRendererProgram &aProgram) |
| The method renders the primitive with a program, which is passed as a parameter. | |
| MGeometryBase () | |
| virtual | ~MGeometryBase () |
| const MRendererPrimitive & | getPrimitive () const |
| The method returns the read-only primitive. | |
| MRendererPrimitive & | getPrimitive () |
| The method returns the read-write primitive. A user can modify the shape of primitive. | |
| virtual void | render (const MRendererProgram &aProgram) |
| The method renders the primitive with a program, which is passed as a parameter. | |
Private Member Functions | |
| void | buildPrimitveTSI (unsigned int aHorizontal, unsigned int aVertical, const MArrayVec3f &aPoints, const MArrayVec3f &aNormals, MRendererPrimitive &aOutPrimitive) const |
| void | buildPrimitveTS (unsigned int aHorizontal, unsigned int aVertical, const MArrayVec3f &aPoints, const MArrayVec3f &aNormals, MRendererPrimitive &aOutPrimitive) const |
Private Attributes | |
| MArrayVec3f | thePoints |
| MArrayVec3f | theNormals |
The class is inherited from a MGeometryBase class and represents a torus geometry.
| typedef MArray<MVector3f> MGeometryTorus::MArrayVec3f |
| MGeometryTorus::MGeometryTorus | ( | ) |
|
virtual |
|
private |
|
private |
| void MGeometryTorus::set | ( | float | aRadiusOrbit, |
| float | aRadiusRing, | ||
| unsigned int | aHorizontal, | ||
| unsigned int | aVertical | ||
| ) |
The method builds a torus geometry with a specified orbit radius and ring radius. aHorizontal and aVertical parameters are used to specify resolution of the geometry.
|
private |
|
private |