mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
WXGL window
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1581 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
34
Source/Plugins/Plugin_VideoOGL/Src/WXGLWindow.h
Normal file
34
Source/Plugins/Plugin_VideoOGL/Src/WXGLWindow.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef _WXGLWINDOW_H
|
||||
#define _WXGLWINDOW_H
|
||||
|
||||
#include "GLWindow.h"
|
||||
#include <GL/glew.h>
|
||||
#include "wx/wx.h"
|
||||
#include "wx/glcanvas.h"
|
||||
|
||||
#include <GL/gl.h>
|
||||
|
||||
class WXGLWindow : public GLWindow
|
||||
{
|
||||
private:
|
||||
wxGLCanvas *glCanvas;
|
||||
wxFrame *frame;
|
||||
wxGLContext *glCtxt;
|
||||
|
||||
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();
|
||||
|
||||
~WXGLWindow();
|
||||
WXGLWindow(int _iwidth, int _iheight);
|
||||
|
||||
};
|
||||
#endif
|
Reference in New Issue
Block a user