SDLWindow also mainly for review

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1578 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-12-18 10:30:20 +00:00
parent af378dd111
commit 4ac1d4d2b3
3 changed files with 162 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#ifndef _SDLWINDOW_H
#define _SDLWINDOW_H
#include "GLWindow.h"
#include <GL/glxew.h>
#include <SDL.h>
#include <GL/gl.h>
class SDLWindow : public GLWindow
{
public:
int nXoff, nYoff; // screen offset
// Since it can Stretch to fit Window, we need two different multiplication values
float MValueX, MValueY;
virtual void SwapBuffers();
virtual void SetWindowText(const char *text);
virtual bool PeekMessages();
virtual void Update();
virtual bool MakeCurrent();
~SDLWindow();
SDLWindow(int _iwidth, int _iheight);
};
#endif