is properties the right way?

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1808 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2009-01-06 08:30:31 +00:00
parent ce2b4bead9
commit f95937bc2e
5 changed files with 24 additions and 12 deletions

View File

@ -14,13 +14,20 @@
#else
#include <GL/gl.h>
#endif
enum OGL_Props {
OGL_FULLSCREEN,
OGL_STRETCHTOFIT,
OGL_KEEPRATIO,
OGL_PROP_COUNT
};
class GLWindow {
private:
u32 width, height;
int yOffset, xOffset;
float xMax, yMax;
public:
bool properties[OGL_PROP_COUNT];
public:
virtual void SwapBuffers() {};
virtual void SetWindowText(const char *text) {};
@ -28,7 +35,9 @@ class GLWindow {
virtual void Update() {};;
virtual bool MakeCurrent() {return false;};
bool getProperty(OGL_Props prop) {return properties[prop];}
virtual bool setProperty(OGL_Props prop, bool value)
{return properties[prop] = value;}
u32 GetWidth() {return width;}
u32 GetHeight() {return height;}
void SetSize(u32 newWidth, u32 newHeight) {