KarmaEngine
Game Engine for practical learning and research purposes
|
An abstract class for creating a context for Renderer and provide graphics API. More...
#include <GraphicsContext.h>
Public Member Functions | |
virtual void | Init ()=0 |
For initializing Renderer and instantiating relevant objects. | |
virtual void | SwapBuffers ()=0 |
This function swaps the front and back buffers of the specified window. If the swap interval is greater than zero, the GPU driver waits the specified number of screen updates before swapping the buffers. | |
virtual bool | OnWindowResize (WindowResizeEvent &event)=0 |
Calls glViewport function which specifies the affine transformation of x and y from normalized device coordinates to window coordinates. | |
virtual | ~GraphicsContext () |
A destructor. | |
An abstract class for creating a context for Renderer and provide graphics API.
|
inlinevirtual |
A destructor.
|
pure virtual |
For initializing Renderer and instantiating relevant objects.
Implemented in Karma::OpenGLContext, and Karma::VulkanContext.
|
pure virtual |
Calls glViewport function which specifies the affine transformation of x and y from normalized device coordinates to window coordinates.
Implemented in Karma::OpenGLContext, and Karma::VulkanContext.
|
pure virtual |
This function swaps the front and back buffers of the specified window. If the swap interval is greater than zero, the GPU driver waits the specified number of screen updates before swapping the buffers.
Implemented in Karma::OpenGLContext, and Karma::VulkanContext.