source/Platform/Unix/X11Display.cpp: Initial implementation
This commit is contained in:
parent
389d75f3d8
commit
06f5ef5f86
2 changed files with 70 additions and 7 deletions
|
|
@ -2,6 +2,10 @@
|
|||
#ifndef PLATFORM_UNIX_X11DISPLAY_H
|
||||
#define PLATFORM_UNIX_X11DISPLAY_H
|
||||
|
||||
#include <Spectre/Display/DisplayDescription.h> // Prevents conflict with X.h defining "None"
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xos.h>
|
||||
#include <Platform/PlatformDisplay.h>
|
||||
|
||||
namespace sp {
|
||||
|
|
@ -9,6 +13,7 @@ namespace sp {
|
|||
class X11Display : public PlatformDisplay
|
||||
{
|
||||
public :
|
||||
X11Display();
|
||||
|
||||
virtual bool create(DisplayDescription description);
|
||||
|
||||
|
|
@ -32,6 +37,14 @@ public :
|
|||
|
||||
protected :
|
||||
|
||||
::Display* m_disp;
|
||||
|
||||
::Window m_win;
|
||||
|
||||
int m_screen;
|
||||
|
||||
//GC m_GC;
|
||||
|
||||
Vector2u m_size;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue