mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
21 lines
437 B
C++
21 lines
437 B
C++
|
|
#ifndef GX_GL_SDL_GL_SDL_CONTEXT_HPP
|
||
|
|
|
||
|
|
#include <SDL3/SDL.h>
|
||
|
|
|
||
|
|
#include "gx/glsdl/GLSDLWindow.hpp"
|
||
|
|
#include "gx/glsdl/GLTypes.hpp"
|
||
|
|
|
||
|
|
class GLSDLContext {
|
||
|
|
public:
|
||
|
|
SDL_GLContext m_sdlGLContext = nullptr;
|
||
|
|
|
||
|
|
GLSDLContext() = default;
|
||
|
|
void Create(GLSDLWindow* window);
|
||
|
|
void Destroy();
|
||
|
|
bool IsCurrentContext();
|
||
|
|
void MakeCurrent(GLSDLWindow* window);
|
||
|
|
int32_t GetSampleCount();
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|