Karma Engine
Loading...
Searching...
No Matches
Karma
src
Platform
OpenGL
OpenGLContext.h
1
#pragma once
2
3
#include "Karma/Renderer/GraphicsContext.h"
4
5
struct
GLFWwindow;
6
7
namespace
Karma
8
{
9
class
OpenGLContext
:
public
GraphicsContext
10
{
11
public
:
12
OpenGLContext
(GLFWwindow* windowHandle);
13
14
virtual
void
Init()
override
;
15
virtual
void
SwapBuffers()
override
;
16
virtual
bool
OnWindowResize(
WindowResizeEvent
& event)
override
;
17
18
private
:
19
GLFWwindow* m_windowHandle;
20
};
21
}
Karma::GraphicsContext
Definition
GraphicsContext.h:8
Karma::OpenGLContext
Definition
OpenGLContext.h:10
Karma::WindowResizeEvent
Definition
ApplicationEvent.h:10
Generated by
1.12.0