|
GL Studio SCECpp Runtime Library
|
#include <gls_triangle_mesh.h>
Classes | |
| struct | InitParameters |
| struct | TriangleFace |
Public Member Functions | |
| GlsTriangleMesh (const InitParameters &initParameters, GlsEventDispatcher *const eventDispatcher) | |
| virtual void | Draw (GlsStateManager &gl, const GlsFloat64 time) |
| virtual void | SetTextureIndex (const GlsUInt32 textureIndex) |
| virtual void | OffsetTexture (const GlsVector2D &offset) |
Public Member Functions inherited from GlsRenderObject | |
| virtual void | SetAlphaMode (const GlsAlphaMode alphaMode) |
| virtual void | SetFillColor (const GlsColor &fillColor) |
| virtual void | SetLineColor (const GlsColor &lineColor) |
| virtual void | SetLineWidth (const GlsFloat32 lineWidth) |
| virtual void | SetPolygonMode (const GlsPolygonMode polygonMode) |
Public Member Functions inherited from GlsDisplayObject | |
| virtual void | Calculate (const GlsFloat64 time) |
| virtual GlsDisplayObject * | PickTest (const GlsVector2D &windowCoord, GlsInputManager &inputManager, const GlsMatrixAffineD::GLMatrixAffineF &parentDrawMatrix) |
| GlsDisplayObject * | HandleEvent (GlsEvent &event) |
| ObjectType | GetObjectType (void) const |
| void | SetBlinking (const GlsBool blinking) |
| void | SetBlinkRate (const GlsFloat32 blinkRate) |
| void | SetDynamicRotation (const GlsVector3D &dynamicRotation) |
| void | SetDynamicScale (const GlsVector3D &dynamicScale) |
| void | SetDynamicTranslation (const GlsVector3D &dynamicTranslation) |
| void | SetVisibility (const GlsBool visible) |
| void | SetParent (GlsDisplayObject *const parent) |
| void | SetPickMode (const PickMode pickMode) |
| GlsBool | NeedCalculate (void) const |
| void | InvalidatePickCache (void) |
Additional Inherited Members | |
Public Types inherited from GlsDisplayObject | |
| enum | ObjectType { OBJECT_TYPE_COMPOSITE, OBJECT_TYPE_RENDERABLE } |
| enum | PickMode { PICK_MODE_NEVER, PICK_MODE_FIRST, PICK_MODE_ALWAYS } |
Static Protected Attributes inherited from GlsRenderObject | |
| static const GLclampf | ALPHA_MODE_2_LEVEL_REF |
This class encapsulates a mesh of triangle faces.
| GlsTriangleMesh::GlsTriangleMesh | ( | const InitParameters & | initParameters, |
| GlsEventDispatcher *const | eventDispatcher | ||
| ) |
Constructor - create an instance
| initParameters | initialization parameters |
| eventDispatcher | event dispatcher for this object else GLS_NULL |
|
protectedvirtual |
Destructor - shall never be called
|
virtual |
Draws the triangle mesh
| gl | GL State manager for OpenGL into which object is drawn |
| time | the elaspsed time in seconds since program start |
Implements GlsDisplayObject.
|
virtual |
Offset the texture on the object
| offset | x, y offset for texture |
Implements GlsRenderObject.
|
virtual |
Set the desired texture index
| textureIndex | desired texture index into palette else GlsTexturePalette::NO_TEXTURE |
Reimplemented from GlsRenderObject.
|
protected |
array of faces in triangle mesh
|
protected |
number of faces in faces array
|
protected |
vertices in triangle mesh
1.8.10