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 b65cb9c2d2
commit 7dedabba57
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