1
0
Fork 0

source/Platform/Unix/GLXContext: Initial implementation

This commit is contained in:
Henrik Hautakoski 2019-12-24 21:32:38 +01:00
parent 06f5ef5f86
commit 9131aa2d2d
2 changed files with 181 additions and 9 deletions

View file

@ -4,6 +4,7 @@
// X11 OpenGL Context (glx)
#include "glad_glx.h"
#include <Spectre/Display/GLContext.h>
namespace sp {
@ -32,6 +33,17 @@ public :
void setSize(const Vector2u size);
void swapBuffers();
private :
bool createGLContext();
private :
::Display* m_disp;
::Window m_win;
::GLXContext m_ctx;
};
} // namespace sp