2014-10-27 21:22:29 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "wx/frame.h"
|
|
|
|
#include "PrimaryGLContext.h"
|
|
|
|
|
|
|
|
// Define a new frame type
|
2014-10-28 21:39:59 -04:00
|
|
|
class AppFrame: public wxFrame {
|
2014-10-27 21:22:29 -04:00
|
|
|
public:
|
|
|
|
AppFrame();
|
2014-10-28 21:39:59 -04:00
|
|
|
void OnEventInput(wxThreadEvent& event);
|
2014-10-27 21:22:29 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
void OnClose(wxCommandEvent& event);
|
|
|
|
void OnNewWindow(wxCommandEvent& event);
|
2014-10-28 21:39:59 -04:00
|
|
|
void OnIdle(wxIdleEvent& event);
|
2014-10-27 21:22:29 -04:00
|
|
|
|
2014-10-28 22:59:17 -04:00
|
|
|
TestGLCanvas *canvas;
|
|
|
|
|
2014-10-28 21:39:59 -04:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
2014-10-27 21:22:29 -04:00
|
|
|
};
|