Added Window as a subclass of Screen
Screen should be os/hardware independent window should contain all nastiness. ~g2k
This commit is contained in:
29
include/window.h
Normal file
29
include/window.h
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
#ifndef __window_h__
|
||||||
|
#define __window_h__
|
||||||
|
|
||||||
|
#include "screen.h"
|
||||||
|
#ifdef __linux
|
||||||
|
#include <GL/glx.h>
|
||||||
|
#include <X11/extensions/xf86vmode.h>
|
||||||
|
#include <X11/keysym.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace OpenArena
|
||||||
|
{
|
||||||
|
class Window: public SCREEN
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
#ifdef __linux
|
||||||
|
Display* display;
|
||||||
|
int screen;
|
||||||
|
::Window window;
|
||||||
|
GLXContext hRC;
|
||||||
|
XSetWindowAttributes attributes;
|
||||||
|
bool doubleBuffered;
|
||||||
|
XF86VidModeModeInfo vidMode;
|
||||||
|
int x, y;
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user