KarmaEngine
Game Engine for practical learning and research purposes
|
OpenGL API based implementation of GraphicsContext. More...
#include <OpenGLContext.h>
Public Member Functions | |
OpenGLContext (GLFWwindow *windowHandle) | |
A constructor. | |
virtual void | Init () override |
Initializes the context. | |
virtual void | SwapBuffers () override |
This function swaps the front and back buffers of the context window. | |
virtual bool | OnWindowResize (WindowResizeEvent &event) override |
Called by Window::Resize, when the resize of a window happens. | |
![]() | |
virtual | ~GraphicsContext () |
A destructor. | |
OpenGL API based implementation of GraphicsContext.
Karma::OpenGLContext::OpenGLContext | ( | GLFWwindow * | windowHandle | ) |
A constructor.
Sets the glfw window handle and null asserts
windowHandle | The window handle to be set to, in the context |
|
overridevirtual |
|
overridevirtual |
Called by Window::Resize, when the resize of a window happens.
event | The details of the resizing event |
Implements Karma::GraphicsContext.
|
overridevirtual |
This function swaps the front and back buffers of the context window.
Implements Karma::GraphicsContext.