dolphin/Source/Plugins/Plugin_VideoOGL/Src/WXGLWindow.h

37 lines
671 B
C++

#ifndef _WXGLWINDOW_H
#define _WXGLWINDOW_H
#include "GLWindow.h"
#if defined USE_WX && USE_WX
#include "wx/wx.h"
#include "wx/glcanvas.h"
class WXGLWindow : public GLWindow
{
private:
wxGLCanvas *glCanvas;
wxFrame *frame;
wxGLContext *glCtxt;
public:
virtual void SwapBuffers();
virtual void SetWindowText(const char *text);
virtual bool PeekMessages();
virtual void Update();
virtual bool MakeCurrent();
static bool valid() { return true; }
~WXGLWindow();
WXGLWindow(int _iwidth, int _iheight);
};
#else
class WXGLWindow : public GLWindow
{
public:
WXGLWindow(int _iwidth, int _iheight) {}
};
#endif
#endif