8 #ifndef META_OCEAN_PLATFORM_GL_WIN_WINDOW_CONTEXT_H
9 #define META_OCEAN_PLATFORM_GL_WIN_WINDOW_CONTEXT_H
45 WindowContext(HINSTANCE applicationInstance,
const std::wstring& name,
const bool isChild);
This class encapsulates an OpenGL context.
Definition: platform/gl/Context.h:29
This class implements an OpenGL context based on a window.
Definition: win/WindowContext.h:36
WindowContext(HINSTANCE applicationInstance, const std::wstring &name, const bool isChild)
Creates a new main window.
~WindowContext() override
Destructs the main window.
void onInitialized() override
Event function if the windows has been initialized successfully.
bool swapBuffers() override
Swaps the foreground and background buffer if this context has two buffers.
void modifyWindowClass(WNDCLASS &windowClass) override
Allows the modification of the window class before the registration.
bool createOpenGLContext(const bool initializeOpenGL33, const unsigned int multisamples) override
Creates the OpenGL context for this framebuffer.
void makeCurrent(const bool state=true) override
Makes the OpenGL rendering context of this framebuffer the calling thread's current rendering context...
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15