|
GL Studio SCECpp Runtime Library
|
#include <gls_render_object.h>
Classes | |
| struct | InitParameters |
Public Member Functions | |
| 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) |
| virtual void | OffsetTexture (const GlsVector2D &offset)=0 |
Public Member Functions inherited from GlsDisplayObject | |
| virtual void | Draw (GlsStateManager &gl, const GlsFloat64 time)=0 |
| 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) |
Static Protected Attributes | |
| static const GLclampf | ALPHA_MODE_2_LEVEL_REF |
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 } |
Defines an abstract class for a display object that is directly rendered to OpenGL (not a composite of other objects) and maintains its own draw settings
|
protected |
Construct with given initialization parameters
| initParameters | initialization parameters |
| eventDispatcher | event dispatcher for this object else GLS_NULL |
|
protectedvirtual |
Destructor - shall never be called
|
protected |
Get the GL texture filter enum for the correspoding GlsTextureFilterMode
| mode | GlsTextureFilterMode in question |
|
pure virtual |
Offset the texture on the object
| offset | x, y offset for texture |
Implemented in GlsText, GlsTriangleMesh, and GlsPolygon.
|
virtual |
Set the alpha mode
| alphaMode | desired alpha mode |
Reimplemented in GlsText.
|
virtual |
Set the fill color
| fillColor | desired fill color |
Reimplemented in GlsText.
|
virtual |
Set the line color
| lineColor | desired line color |
Reimplemented in GlsText.
|
virtual |
Set the line width
| lineWidth | new line width, GlsRenderObject::LINE_WIDTH_MIN <= lineWidth <= GlsRenderObject::LINE_WIDTH_MAX |
Reimplemented in GlsText.
|
virtual |
Set the polygon mode
| polygonMode | new polygon mode |
Reimplemented in GlsText.
|
virtual |
Set the desired texture index
| textureIndex | desired texture index into palette else GlsTexturePalette::NO_TEXTURE |
Reimplemented in GlsText, and GlsTriangleMesh.
|
protected |
Setup the GL alpha test and blend settings based on the current object settings
| gl | GL state manager to setup |
|
protected |
Setup GL with the proper antialias settings based on the current object settings
| gl | GL state manager to setup |
|
protected |
Setup GL with the proper backface culling mode based on the current object settings
| gl | GL state manager to setup |
|
protected |
Setup the GL depth settings based on current object settings
| gl | GL state manager to setup |
|
protected |
Setup GL with the proper line style settings based on the current object settings
| gl | GL state manager to setup |
|
protected |
Setup GL with the proper shading settings based on the current object settings
| gl | GL state manager to setup |
|
protected |
Setup GL with the proper texture binding and parameters as indicated by the current object settings and the given texture index
| gl | GL state manager to setup |
| textureIndex | index of texture to setup |
|
protected |
Setup GL with the proper texture filter settings based on the current object settings.
| gl | GL state manager to setup |
|
protected |
alpha mode
|
protected |
GLS_TRUE if antialiasing is enabled else GLS_FALSE
|
protected |
GLS_TRUE if backface culling is enabled else GLS_FALSE
|
protected |
depth buffer test / write mode
|
protected |
fill color
|
protected |
line color
|
protected |
line width in pixels, GlsRenderObject::LINE_WIDTH_MIN <= lineWidth <= GlsRenderObject::LINE_WIDTH_MAX
|
protected |
Polygon close mode
|
protected |
polygon mode
|
protected |
shading mode
|
protected |
texture index into palette else GlsTexturePalette::NO_TEXTURE
|
protected |
texture magnification filter mode
|
protected |
texture mapping mode
|
protected |
texture minification filter mode
|
protected |
palette with textures available to object
|
protected |
GLS_TRUE to enable texture repeat else GLS_FALSE for texture clamp
|
staticprotected |
alpha function reference value when in 2 level alpha mode
1.8.10