Integrated GLEW; began migration to Xlib

This commit is contained in:
Jack Andersen
2015-10-30 18:28:21 -10:00
parent b73ecde4aa
commit d013f1e25c
19 changed files with 42193 additions and 486 deletions

View File

@@ -2,14 +2,9 @@
#include "boo/IGraphicsContext.hpp"
#include <X11/Xlib.h>
#include <GL/glx.h>
#include <GL/glxext.h>
namespace boo
{
extern PFNGLXGETVIDEOSYNCSGIPROC FglXGetVideoSyncSGI;
extern PFNGLXWAITVIDEOSYNCSGIPROC FglXWaitVideoSyncSGI;
struct GraphicsContextWayland : IGraphicsContext
{
@@ -63,6 +58,10 @@ public:
{
}
void postInit()
{
}
IGraphicsCommandQueue* getCommandQueue()
{
return nullptr;
@@ -78,6 +77,10 @@ public:
return nullptr;
}
void present()
{
}
};
struct WindowWayland : IWindow
@@ -150,11 +153,8 @@ struct WindowWayland : IWindow
}
size_t waitForRetrace(size_t count)
void waitForRetrace()
{
unsigned int sync;
FglXWaitVideoSyncSGI(1, 0, &sync);
return 0;
}
uintptr_t getPlatformHandle() const