source/Platform/Unix/GLXContext: Initial implementation
This commit is contained in:
parent
06f5ef5f86
commit
9131aa2d2d
2 changed files with 181 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue