5 #ifndef __iplatformopenglview__ 6 #define __iplatformopenglview__ 8 #include "../vstguifwd.h" 12 #if VSTGUI_OPENGL_SUPPORT 23 kDoubleBuffered = 1 << 0,
24 kMultiSample = 1 << 2,
25 kModernOpenGL = 1 << 3
28 uint32_t depthBufferSize {32};
29 uint32_t stencilBufferSize {0};
31 uint32_t flags {kDoubleBuffered};
33 PixelFormat () =
default;
34 PixelFormat (
const PixelFormat&) =
default;
35 PixelFormat& operator= (
const PixelFormat&) =
default;
42 virtual void drawOpenGL (
const CRect& updateRect) = 0;
43 virtual void reshape () = 0;
47 class IPlatformOpenGLView :
public AtomicReferenceCounted
51 virtual bool init (IOpenGLView* view, PixelFormat* pixelFormat =
nullptr) = 0;
52 virtual void remove () = 0;
54 virtual void invalidRect (
const CRect& rect) = 0;
55 virtual void viewSizeChanged (
const CRect& visibleSize) = 0;
57 virtual bool makeContextCurrent () = 0;
58 virtual bool lockContext () = 0;
59 virtual bool unlockContext () = 0;
61 virtual void swapBuffers () = 0;
66 #endif // VSTGUI_OPENGL_SUPPORT 70 #endif // __iplatformopenglview__ Definition: customcontrols.cpp:8