mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-13 23:26:16 +00:00
some app flow redesign
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
#include "boo/IWindow.hpp"
|
||||
#include "boo/IGraphicsContext.hpp"
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <GL/glx.h>
|
||||
#include <GL/glxext.h>
|
||||
|
||||
namespace boo
|
||||
{
|
||||
|
||||
extern PFNGLXGETVIDEOSYNCSGIPROC FglXGetVideoSyncSGI;
|
||||
extern PFNGLXWAITVIDEOSYNCSGIPROC FglXWaitVideoSyncSGI;
|
||||
|
||||
IGraphicsContext* _CGraphicsContextWaylandNew(IGraphicsContext::EGraphicsAPI api,
|
||||
IWindow* parentWindow);
|
||||
@@ -74,6 +81,12 @@ struct WindowWayland : IWindow
|
||||
|
||||
}
|
||||
|
||||
void waitForRetrace()
|
||||
{
|
||||
unsigned int sync;
|
||||
FglXWaitVideoSyncSGI(1, 0, &sync);
|
||||
}
|
||||
|
||||
uintptr_t getPlatformHandle() const
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user