mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-14 07:36:26 +00:00
Integrated GLEW; began migration to Xlib
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user