Files
OpenArena/include/window.h
Tom Hicks 69a936683e Added Window as a subclass of Screen
Screen should be os/hardware independent window should contain all nastiness.
~g2k
2005-06-25 15:50:22 -04:00

30 lines
444 B
C++

#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