Cleaning window managers for consistency.
This commit is contained in:
parent
5d984aa61d
commit
392a2b7889
28 changed files with 452 additions and 325 deletions
28
src/windows/ui_interfaces/x11/XcbGlWindowInterface.h
Normal file
28
src/windows/ui_interfaces/x11/XcbGlWindowInterface.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include <GL/glx.h>
|
||||
#include <xcb/xcb.h>
|
||||
#include <memory>
|
||||
|
||||
class XcbGlInterface;
|
||||
|
||||
class XcbGlWindowInterface
|
||||
{
|
||||
public:
|
||||
XcbGlWindowInterface(XcbGlInterface* glInterface);
|
||||
|
||||
~XcbGlWindowInterface();
|
||||
|
||||
bool initialize(xcb_window_t window);
|
||||
|
||||
void draw();
|
||||
|
||||
private:
|
||||
void destroyWindow();
|
||||
void swapBuffers();
|
||||
|
||||
XcbGlInterface* mGlInterface{nullptr};
|
||||
GLXDrawable mDrawable;
|
||||
GLXWindow mWindow;
|
||||
};
|
||||
|
||||
using XcbGlWindowInterfacePtr = std::unique_ptr<XcbGlWindowInterface>;
|
Loading…
Add table
Add a link
Reference in a new issue