]>
git.saurik.com Git - wxWidgets.git/blob - utils/glcanvas/samples/cube/cube.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGLCanvas demo program
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
17 // Define a new application type
18 class MyApp
: public wxApp
25 // Define a new frame type
27 class MyFrame
: public wxFrame
30 MyFrame(wxFrame
*frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
31 long style
= wxDEFAULT_FRAME_STYLE
);
33 void OnExit(wxCommandEvent
& event
);
36 TestGLCanvas
* m_canvas
;
41 class TestGLCanvas
: public wxGLCanvas
44 TestGLCanvas(wxWindow
*parent
, const wxWindowID id
= -1, const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
, long style
= 0, const wxString
& name
= "TestGLCanvas");
48 void OnPaint(wxPaintEvent
& event
);
49 void OnSize(wxSizeEvent
& event
);
50 void OnEraseBackground(wxEraseEvent
& event
);