Added Window as a subclass of Screen

Screen should be os/hardware independent window should contain all nastiness.
~g2k
This commit is contained in:
2005-06-25 15:50:22 -04:00
parent 6ebf542799
commit 69a936683e

29
include/window.h Normal file
View 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