5 #ifndef __copenglview__ 6 #define __copenglview__ 9 #include "iscalefactorchangedlistener.h" 10 #include "platform/iplatformopenglview.h" 12 #if VSTGUI_OPENGL_SUPPORT 40 void reshape ()
override;
51 void onScaleFactorChanged (
CFrame* frame,
double newScaleFactor)
override;
63 IPlatformOpenGLView* getPlatformOpenGLView ()
const {
return platformOpenGLView; }
67 void updatePlatformOpenGLViewSize ();
68 bool createPlatformOpenGLView ();
69 bool destroyPlatformOpenGLView ();
71 double scaleFactor {1.};
73 SharedPointer<IPlatformOpenGLView> platformOpenGLView;
78 #endif // VSTGUI_OPENGL_SUPPORT 79 #endif // __copenglview__ virtual void platformOpenGLViewWillDestroy()
will be called before the platform opengl view will be destroyed
Definition: copenglview.h:60
Rect structure.
Definition: crect.h:17
void parentSizeChanged() override
notification that one of the views parent has changed its size
Definition: copenglview.cpp:97
virtual void platformOpenGLViewSizeChanged()
will be called whenever the platform opengl view size has changed
Definition: copenglview.h:61
void setVisible(bool state) override
set visibility state
Definition: copenglview.cpp:140
Definition: customcontrols.cpp:8
Base Class of all view objects.
Definition: cview.h:44
void drawOpenGL(const CRect &updateRect) override=0
will be called when the view was marked invalid or the view was resized
void setViewSize(const CRect &rect, bool invalid=true) override
set views size
Definition: copenglview.cpp:83
Definition: iscalefactorchangedlistener.h:13
bool removed(CView *parent) override
view is removed from parent view
Definition: copenglview.cpp:133
a subview which uses OpenGL for drawing
Definition: copenglview.h:32
virtual void invalid()
mark whole view as invalid
Definition: cview.h:63
The CFrame is the parent container of all views.
Definition: cframe.h:32
virtual void platformOpenGLViewCreated()
will be called after the platform opengl view was created
Definition: copenglview.h:59
bool attached(CView *parent) override
view is attached to a parent view
Definition: copenglview.cpp:123
virtual PixelFormat * getPixelFormat()
subclasses should return a pixelformat here if they don't want to use the default one ...
Definition: copenglview.h:62
void invalidRect(const CRect &rect) override
mark rect as invalid
Definition: copenglview.cpp:160