mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
a7c4697d22
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1622 8ced0084-cf51-0410-be5f-012b33b47a6e
59 lines
1.2 KiB
C++
59 lines
1.2 KiB
C++
#ifndef _GLWINDOW_H
|
|
#define _GLWINDOW_H
|
|
|
|
#include "Common.h"
|
|
#include "Globals.h"
|
|
#include "Config.h"
|
|
#include "pluginspecs_video.h"
|
|
|
|
#include <GL/glew.h>
|
|
|
|
#if defined(__APPLE__)
|
|
#include <OpenGL/gl.h>
|
|
#else
|
|
#include <GL/gl.h>
|
|
#endif
|
|
|
|
class GLWindow {
|
|
private:
|
|
u32 width, height;
|
|
int yOffset, xOffset;
|
|
float xMax, yMax;
|
|
public:
|
|
|
|
virtual void SwapBuffers() {};
|
|
virtual void SetWindowText(const char *text) {};
|
|
virtual bool PeekMessages() {return false;};
|
|
virtual void Update() {};;
|
|
virtual bool MakeCurrent() {return false;};
|
|
|
|
|
|
u32 GetWidth() {return width;}
|
|
u32 GetHeight() {return height;}
|
|
void SetSize(u32 newWidth, u32 newHeight) {
|
|
width = newWidth;
|
|
height = newHeight;
|
|
}
|
|
|
|
int GetYoff() {return yOffset;}
|
|
int GetXoff() {return xOffset;}
|
|
void SetOffset(int x, int y) {
|
|
yOffset = y;
|
|
xOffset = x;
|
|
}
|
|
|
|
void SetMax(float x, float y) {
|
|
yMax = y;
|
|
xMax = x;
|
|
}
|
|
float GetXmax() {return xMax;}
|
|
float GetYmax() {return yMax;}
|
|
|
|
static bool valid() { return false; }
|
|
// bool GLwindow(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight) {};
|
|
// setResolution
|
|
// resolution iter
|
|
};
|
|
|
|
#endif
|