Use Collator for recipients search (#2426).
[dcpomatic.git] / hacks / gl / shader.cc
1 #include <wx/wx.h>
2 #include <wx/glcanvas.h>
3
4
5
6 class GLCanvas
7 {
8 public:
9         GLCanvas (wxFrame* parent)
10         {
11                 _canvas = new wxGLCanvas(parent);
12                 Bind(wxEVT_PAINT, bind(&GLCanvas::paint, this);
13         }
14
15         wxWindow* get()
16         {
17                 return _canvas;
18         }
19
20         void paint()
21         {
22
23         }
24
25
26 private:
27         wxGLCanvas* _canvas;
28 };
29
30
31
32 class MyApp : public wxApp
33 {
34 public:
35         bool OnInit()
36         {
37                 auto sizer = new wxBoxSizer(wxHORIZONTAL);
38                 _frame = new wxFrame(nullptr, wxID_ANY, wxT("Hello world"));
39                 _canvas = new GLCanvas(_frame);
40                 sizer->Add(_canvas->get(), 1, wxEXPAND);
41                 _frame->SetSizerAndFit(sizer);
42                 _frame->Show();
43                 return true;
44         }
45
46 private:
47         wxFrame* _frame;
48         GLCanvas* _canvas;
49 };
50