CoriEngine
Loading...
Searching...
No Matches
GL_GraphicsContext.hpp
Go to the documentation of this file.
1
#pragma once
2
#include "
../RenderingContext.hpp
"
3
#include "
Profiling/Trackable.hpp
"
4
5
namespace
Cori
{
6
namespace
Graphics
{
7
namespace
Internal
{
8
class
OpenGLContext
final :
public
RenderingContext
,
public
Profiling::Trackable
<OpenGLContext, RenderingContext> {
9
public
:
10
OpenGLContext
();
11
~OpenGLContext
()
override
;
12
void
Init
(SDL_Window* window)
override
;
13
void
SwapBuffers
()
override
;
14
[[nodiscard]]
void
*
GetNativeContext
()
const override
{
return
m_Context; }
15
private
:
16
SDL_GLContext m_Context{
nullptr
};
17
};
18
}
19
}
20
}
RenderingContext.hpp
Trackable.hpp
Cori::Graphics::Internal::OpenGLContext::SwapBuffers
void SwapBuffers() override
Definition
GL_GraphicsContext.cpp:42
Cori::Graphics::Internal::OpenGLContext::~OpenGLContext
~OpenGLContext() override
Definition
GL_GraphicsContext.cpp:21
Cori::Graphics::Internal::OpenGLContext::GetNativeContext
void * GetNativeContext() const override
Definition
GL_GraphicsContext.hpp:14
Cori::Graphics::Internal::OpenGLContext::OpenGLContext
OpenGLContext()
Definition
GL_GraphicsContext.cpp:8
Cori::Graphics::Internal::OpenGLContext::Init
void Init(SDL_Window *window) override
Definition
GL_GraphicsContext.cpp:26
Cori::Graphics::RenderingContext
Definition
RenderingContext.hpp:7
Cori::Profiling::Trackable
For InstanceMetrics to work with a type it should derive from this.
Definition
Trackable.hpp:29
Cori::Graphics::Internal
Definition
Window.hpp:8
Cori::Graphics
Almost everything connected to graphics is in this namespace.
Definition
Window.hpp:7
Cori
Global engine namespace.
Definition
AssetLoadStatus.hpp:3
CoriEngine
Engine
src
Graphics
OpenGL
GL_GraphicsContext.hpp
Generated by
1.14.0