KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
GraphicsContext.h
Go to the documentation of this file.
1
10#pragma once
11
13
14namespace Karma
15{
20 {
21 public:
27 virtual void Init() = 0;
28
35 virtual void SwapBuffers() = 0;
36
43 virtual bool OnWindowResize(WindowResizeEvent& event) = 0;
44
51 {
52 }
53 };
54}
This file contains the classes concerned with activity of Window.
#define KARMA_API
Defining Karma's API macro for storage class information.
Definition Core.h:41
An abstract class for creating a context for Renderer and provide graphics API.
Definition GraphicsContext.h:20
virtual ~GraphicsContext()
A destructor.
Definition GraphicsContext.h:50
virtual void SwapBuffers()=0
This function swaps the front and back buffers of the specified window. If the swap interval is great...
virtual bool OnWindowResize(WindowResizeEvent &event)=0
Calls glViewport function which specifies the affine transformation of x and y from normalized device...
virtual void Init()=0
For initializing Renderer and instantiating relevant objects.
Event triggered when Window is resized.
Definition ApplicationEvent.h:22