2008-12-17 23:49:35 +00:00
|
|
|
#ifndef _GLWINDOW_H
|
|
|
|
#define _GLWINDOW_H
|
|
|
|
|
|
|
|
#include "Common.h"
|
|
|
|
#include "Globals.h"
|
|
|
|
#include "Config.h"
|
|
|
|
#include "pluginspecs_video.h"
|
|
|
|
|
2008-12-18 21:40:50 +00:00
|
|
|
#include <GL/glew.h>
|
|
|
|
|
|
|
|
#if defined(__APPLE__)
|
|
|
|
#include <OpenGL/gl.h>
|
|
|
|
#else
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#endif
|
|
|
|
|
2008-12-17 23:49:35 +00:00
|
|
|
class GLWindow {
|
|
|
|
private:
|
|
|
|
u32 width, height;
|
2008-12-19 13:56:53 +00:00
|
|
|
int yOffset, xOffset;
|
2008-12-17 23:49:35 +00:00
|
|
|
public:
|
|
|
|
/* int screen;
|
|
|
|
int x, y;
|
|
|
|
unsigned int depth;*/
|
|
|
|
|
2008-12-20 19:40:20 +00:00
|
|
|
virtual void SwapBuffers() {};
|
|
|
|
virtual void SetWindowText(const char *text) {};
|
|
|
|
virtual bool PeekMessages() {return false;};
|
|
|
|
virtual void Update() {};;
|
|
|
|
virtual bool MakeCurrent() {return false;};
|
2008-12-17 23:49:35 +00:00
|
|
|
virtual void SetSize(u32 newWidth, u32 newHeight) {
|
|
|
|
width = newWidth;
|
|
|
|
height = newHeight;
|
2008-12-19 13:56:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetOffset(int x, int y) {
|
|
|
|
yOffset = y;
|
|
|
|
xOffset = x;
|
|
|
|
}
|
|
|
|
|
2008-12-17 23:49:35 +00:00
|
|
|
u32 GetWidth() {return width;}
|
|
|
|
u32 GetHeight() {return height;}
|
2008-12-19 13:56:53 +00:00
|
|
|
int GetYoff() {return yOffset;}
|
|
|
|
int GetXoff() {return xOffset;}
|
|
|
|
|
2008-12-20 23:13:39 +00:00
|
|
|
static bool valid() { return false; }
|
2008-12-17 23:49:35 +00:00
|
|
|
// bool GLwindow(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight) {};
|
|
|
|
// setResolution
|
|
|
|
// resolution iter
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|