GL Studio Safety Critical Embedded C++ Runtime Library
|
#include <gls_polygon.h>
Classes | |
struct | InitParameters |
Public Member Functions | |
GlsPolygon (const InitParameters &initParameters, GlsEventDispatcher *const eventDispatcher) | |
virtual void | Draw (GlsStateManager &gl, const GlsFloat64 time) |
virtual void | OffsetTexture (const GlsVector2D &offset) |
void | SetVertex (const GlsUInt32 index, const GlsTextureVertex &vertex) |
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) |
virtual void | SetTextureIndex (const GlsUInt32 textureIndex) |
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 |
The GlsPolygon abstracts an ordered set of two or more textured vertices.
GlsPolygon::GlsPolygon | ( | const InitParameters & | initParameters, |
GlsEventDispatcher *const | eventDispatcher | ||
) |
Constructor - create instance
initParameters | initialization parametets |
eventDispatcher | event dispatcher for this object else GLS_NULL |
|
protectedvirtual |
Destructor - shall never be called
|
virtual |
Draws this polygon
gl | GL State manager for OpenGL into which polygon 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.
void GlsPolygon::SetVertex | ( | const GlsUInt32 | index, |
const GlsTextureVertex & | vertex | ||
) |
Set one of the vertices in the polygon
index | index of desired vertex |
vertex | new value of desired vertex |
|
protected |
array of vertices for polygon