8 #ifndef META_OCEAN_PLATFORM_GL_WXWIDGETS_WINDOW_CONTEXT_H
9 #define META_OCEAN_PLATFORM_GL_WXWIDGETS_WINDOW_CONTEXT_H
51 WindowContext(
wxWindow *parent, wxWindowID
id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxString());
93 NSOpenGLContext* nsContext_ =
nullptr;
This class encapsulates an OpenGL context.
Definition: platform/gl/Context.h:29
This class implements an OpenGL context based on a window.
Definition: wxwidgets/WindowContext.h:34
void onResize(wxSizeEvent &event)
The window resize event function.
virtual bool swapBuffers()
Swaps the foreground and background buffer if this context has two buffers.
WindowContext(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxString())
Creates a new object and directly creates the window.
DECLARE_EVENT_TABLE()
WxWidgets event table.
virtual ~WindowContext()
Destructs the window.
virtual void makeCurrent(const bool state=true)
Makes the OpenGL rendering context of this framebuffer the calling thread's current rendering context...
virtual bool releaseOpenGLContext()
Releases the OpenGL context of this framebuffer.
WindowContext()
Creates a new object without creating the window.
virtual bool createOpenGLContext(const bool initializeOpenGL33, const unsigned int multisamples)
Creates the OpenGL context for this framebuffer.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15