]>
Commit | Line | Data |
---|---|---|
8b089c5e JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: isosurf.h | |
3 | // Purpose: wxGLCanvas demo program | |
4 | // Author: Brian Paul (original gltk version), Wolfram Gloger | |
5 | // Modified by: Julian Smart | |
6 | // Created: 04/01/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
2f6c54eb | 9 | // Licence: wxWindows licence |
8b089c5e JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_ISOSURF_H_ | |
13 | #define _WX_ISOSURF_H_ | |
14 | ||
15 | // Define a new application type | |
16 | class MyApp: public wxApp | |
17 | { public: | |
18 | bool OnInit(void); | |
19 | }; | |
20 | ||
2db98bf5 | 21 | #if wxUSE_GLCANVAS |
8b089c5e JS |
22 | class TestGLCanvas: public wxGLCanvas |
23 | { | |
24 | public: | |
25 | TestGLCanvas(wxWindow *parent, const wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, | |
2db98bf5 | 26 | const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = _T("TestGLCanvas"), |
8b089c5e JS |
27 | int* gl_attrib = NULL); |
28 | ~TestGLCanvas(void); | |
29 | ||
30 | void OnPaint(wxPaintEvent& event); | |
31 | void OnSize(wxSizeEvent& event); | |
32 | void OnEraseBackground(wxEraseEvent& event); | |
33 | void OnChar(wxKeyEvent& event); | |
34 | void OnMouseEvent(wxMouseEvent& event); | |
35 | ||
36 | DECLARE_EVENT_TABLE() | |
37 | }; | |
2db98bf5 | 38 | #endif |
8b089c5e JS |
39 | |
40 | class MyFrame: public wxFrame | |
41 | { | |
42 | public: | |
43 | MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size, | |
44 | long style = wxDEFAULT_FRAME_STYLE); | |
45 | ||
46 | void OnExit(wxCommandEvent& event); | |
47 | public: | |
2db98bf5 | 48 | #if wxUSE_GLCANVAS |
8b089c5e | 49 | TestGLCanvas* m_canvas; |
2db98bf5 | 50 | #endif |
8b089c5e JS |
51 | |
52 | DECLARE_EVENT_TABLE() | |
53 | }; | |
54 | ||
55 | #endif | |
56 |