]>
git.saurik.com Git - wxWidgets.git/blob - samples/opengl/isosurf/isosurf.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGLCanvas demo program
4 // Author: Brian Paul (original gltk version), Wolfram Gloger
5 // Modified by: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_ISOSURF_H_
13 #define _WX_ISOSURF_H_
15 // Define a new application type
16 class MyApp
: public wxApp
19 virtual bool OnInit();
23 class TestGLCanvas
: public wxGLCanvas
26 TestGLCanvas(wxWindow
*parent
,
27 wxWindowID id
= wxID_ANY
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
31 const wxString
& name
= _T("TestGLCanvas"),
32 int *gl_attrib
= NULL
);
34 virtual ~TestGLCanvas();
36 void OnPaint(wxPaintEvent
& event
);
37 void OnSize(wxSizeEvent
& event
);
38 void OnChar(wxKeyEvent
& event
);
39 void OnMouseEvent(wxMouseEvent
& event
);
45 DECLARE_NO_COPY_CLASS(TestGLCanvas
)
50 class MyFrame
: public wxFrame
53 MyFrame(wxFrame
*frame
,
54 const wxString
& title
,
57 long style
= wxDEFAULT_FRAME_STYLE
);
61 TestGLCanvas
*m_canvas
;
64 void OnExit(wxCommandEvent
& event
);
69 #endif // _WX_ISOSURF_H_