39#ifndef INCLUDED_GLS_MIMIC_GROUP_H
40#define INCLUDED_GLS_MIMIC_GROUP_H
49#if( defined( GLSGEN_EXPORT_GLSMIMICGROUP ) || defined( GLSGEN_IMPORT_GLSMIMICGROUP ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
50 && defined( _MSC_VER )
51# if defined( GLSGEN_EXPORT_GLSMIMICGROUP ) || defined( GLS_EXPORT_GENERATED )
52# define GLSGEN_GLSMIMICGROUP_EXPORT __declspec( dllexport )
54# define GLSGEN_GLSMIMICGROUP_EXPORT __declspec( dllimport )
57# define GLSGEN_GLSMIMICGROUP_EXPORT
62#define LIB_BASE_NAME "gls_mimic_group"
75 GLS_MIMIC_GROUP_STATE = GLS_LAST_INITIALIZER + 1,
76 GLS_MIMIC_GROUP_MIMIC_ACTIVE,
77 GLS_MIMIC_GROUP_BOTTOM_LEFT_CORNER,
78 GLS_MIMIC_GROUP_TOP_RIGHT_CORNER,
79 GLS_MIMIC_GROUP_SHOW_OUTLINE,
80 GLS_MIMIC_GROUP_TEXTURE_HEIGHT,
81 GLS_MIMIC_GROUP_TEXTURE_WIDTH,
82 GLS_MIMIC_GROUP_HAS_DEPTH_BUFFER,
83 GLS_MIMIC_GROUP_DEPTH_TEST,
84 GLS_MIMIC_GROUP_GENERATE_MIPMAPS,
85 GLS_MIMIC_GROUP_DRAW_MIMIC_POLYGON,
86 GLS_MIMIC_GROUP_ATTACHED_TEXTURE_INDEX,
87 GLS_MIMIC_GROUP_CLEAR_COLOR,
88 GLS_MIMIC_GROUP_USE_OPAQUE_TEXTURE,
89 GLS_MIMIC_GROUP_MIMIC_AUTO_REDRAW
126 friend class GlsMimicGroupEditor;
127 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
Definition: dynamic_array.h:79
Definition: gls_color.h:53
Definition: gls_glo_file.h:1241
Definition: gls_mimic_group.h:120
bool _fitToBoundingBox
Whether the mimic scene region should fit to the group's bounding box.
Definition: gls_mimic_group.h:516
bool _frameBuffersEnabledAndAttached
True when frame buffer support is detected and frame buffers were attached successfully.
Definition: gls_mimic_group.h:529
virtual void TextureHeight(unsigned int textureHeight)
void InsertObject(DisplayObject *obj, bool reparent=true, bool recalculateBoundingbox=true, int loc=-1) DISTI_METHOD_OVERRIDE
unsigned int _textureHeight
Height of the mimic texture in pixels.
Definition: gls_mimic_group.h:524
bool RequiredGlFeaturesSupported()
void UseOpaqueTexture(bool opaque)
void PushObject(DisplayObject *obj) DISTI_METHOD_OVERRIDE
void ApplyMimicGroupTextureSettings()
void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
bool ShowOutline() const
Definition: gls_mimic_group.h:347
unsigned int _depthBufferHandle
Handle for depth buffer object.
Definition: gls_mimic_group.h:526
bool _showOutline
Outline is only visible in editor.
Definition: gls_mimic_group.h:514
bool _hasDepthBuffer
Whether or not the mimic will render a depth buffer.
Definition: gls_mimic_group.h:512
virtual void GenerateMipMaps(bool generate)
void ShowOutline(bool showOutline)
virtual unsigned char MimicGroupDepthTest() const
Definition: gls_mimic_group.h:247
virtual void AttachedTextureIndex(int textureIndex)
virtual void ClearColor(const GlsColor &color)
void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
virtual void DrawMimicGroupPolygon(bool draw)
void CalculateBoundingBox() DISTI_METHOD_OVERRIDE
virtual void AutoRedraw(bool autoRedrawSetting)
virtual GlsColor ClearColor() const
Definition: gls_mimic_group.h:275
bool _redraw
Whether or not the mimic scene needs to redraw.
Definition: gls_mimic_group.h:511
virtual void TextureWidth(unsigned int textureWidth)
DisplayObject * handle(DisplayEvent *displayEvent) DISTI_METHOD_OVERRIDE
bool _generateMipMaps
Whether or not the mimic will generate mip maps.
Definition: gls_mimic_group.h:513
unsigned int _frameBufferHandle
Handle for frame buffer object.
Definition: gls_mimic_group.h:525
void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
Vector _topRightCorner
Top Right Corner of the mimic scene region.
Definition: gls_mimic_group.h:521
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
bool _mimicGroupActive
Whether or not the mimic is active. If not active, mimic group behaves as a normal group.
Definition: gls_mimic_group.h:509
void GetRegionCorners(Vector &topLeftCorner, Vector &topRightCorner, Vector &bottomRightCorner, Vector &bottomLeftCorner)
virtual unsigned int TextureWidth() const
Definition: gls_mimic_group.h:169
Vector TopRightCorner() const
Definition: gls_mimic_group.h:340
bool _textureIndexChanged
Unused, kept for backward compatibility.
Definition: gls_mimic_group.h:518
virtual bool FitToBoundingBox() const
Definition: gls_mimic_group.h:236
virtual void PreDrawMimicGroupChildren(const OpenGLMatrices &parentMatrices, Culler &culler)
void DeleteMimicGroupQuad()
Delete the mimic quad (if it has been allocated).
virtual void SetMatrices()
int _attachedTextureIndex
GL Studio texture index to generate mimic into. If -1, then mimic will generate its own texture.
Definition: gls_mimic_group.h:522
void CreateDiffuseTexture()
virtual void HasDepthBuffer(bool hasDepthBuffer)
bool Redraw() const
Definition: gls_mimic_group.h:361
void LogUnsupportedFeatures()
bool UseOpaqueTexture() const
Definition: gls_mimic_group.h:375
virtual int AttachedTextureIndex() const
Definition: gls_mimic_group.h:289
GlsColor _clearColor
RGBA color to clear mimic scene background with.
Definition: gls_mimic_group.h:519
void UpdateMimicGroupQuad()
Update the vertices of the mimic quad.
unsigned char _mimicGroupDepthTest
Mimic depth test settings (affects whether or not the mimic polygon is depth tested).
Definition: gls_mimic_group.h:517
void MimicGroupActive(bool activate)
void CreateDepthTexture()
void SetupMimicGroupDepthTest()
static DisplayObject * CreateInstance()
void Draw() DISTI_METHOD_OVERRIDE
void Invalidate() DISTI_METHOD_OVERRIDE
Notify the painter that the scene needs to be redrawn.
virtual bool GenerateMipMaps() const
Definition: gls_mimic_group.h:211
bool IsInvalidated() const DISTI_METHOD_OVERRIDE
Vector _bottomLeftCorner
Bottom Left Corner of the mimic scene region.
Definition: gls_mimic_group.h:520
virtual void FitToBoundingBox(bool fit)
bool MimicGroupActive()
Definition: gls_mimic_group.h:304
void SetPainter(GlsPainter *painter) DISTI_METHOD_OVERRIDE
bool _drawMimicGroupPolygon
Whether or not a mimic polygon will be drawn.
Definition: gls_mimic_group.h:515
virtual bool HasDepthBuffer() const
Definition: gls_mimic_group.h:197
void BottomLeftCorner(const Vector &bottomLeftCorner)
bool _autoRedraw
Whether or not the mimic group should automatically update via conditional rendering.
Definition: gls_mimic_group.h:510
Image * _mimicGroupTexture
Image object for texture.
Definition: gls_mimic_group.h:527
virtual unsigned int TextureHeight() const
Definition: gls_mimic_group.h:183
bool _useOpaqueTexture
True if the atached frame buffer texture should be crated as GL_RGB, False will create the texture as...
Definition: gls_mimic_group.h:530
virtual bool DrawMimicGroupPolygon() const
Definition: gls_mimic_group.h:225
void CreateMimicGroupQuad()
Allocate and create the mimic quad.
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
virtual void MimicGroupDepthTest(unsigned char depthSettings)
unsigned int _vertexBufferHandle
Vertex buffer handle for mimic quad.
Definition: gls_mimic_group.h:528
static bool _unsupportedLogged
True if a warning has been logged to users that the mimic group feature is not supported....
Definition: gls_mimic_group.h:532
void TopRightCorner(const Vector &topRightCorner)
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
bool VertexBuffersAreSupported()
virtual bool AutoRedraw() const
Definition: gls_mimic_group.h:261
unsigned int _textureWidth
Width of the mimic texture in pixels.
Definition: gls_mimic_group.h:523
Vector BottomLeftCorner()
Definition: gls_mimic_group.h:326
Definition: gls_painter.h:50
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:540
Utility for common frame buffer support.
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_SPECIAL_MEM_FUN_DELETE
Macro to wrap function deletion, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:245
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:487
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:221
#define GLSGEN_GLSMIMICGROUP_EXPORT
Provides support for creating DLLs.
Definition: gls_mimic_group.h:57
The disti::Group class. Implements groups of objects.
The Image class. All textures are converted internally into Images.
Definition: bmpimage.h:46