CoriEngine
Loading...
Searching...
No Matches
GL_GraphicsContext.hpp
Go to the documentation of this file.
1#pragma once
4
5namespace Cori {
6 namespace Graphics {
7 namespace Internal {
8 class OpenGLContext final : public RenderingContext, public Profiling::Trackable<OpenGLContext, RenderingContext> {
9 public:
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}
void Init(SDL_Window *window) override
For InstanceMetrics to work with a type it should derive from this.
Definition Trackable.hpp:29
Almost everything connected to graphics is in this namespace.
Definition Window.hpp:7
Global engine namespace.