mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 19:19:03 +00:00
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:
parent
ce2b4bead9
commit
f95937bc2e
5 changed files with 24 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue