]>
git.saurik.com Git - wxWidgets.git/blob - utils/glcanvas/samples/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
21 class TestGLCanvas
: public wxGLCanvas
24 TestGLCanvas(wxWindow
*parent
, const wxWindowID id
= -1, const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
, long style
= 0, const wxString
& name
= "TestGLCanvas",
26 int* gl_attrib
= NULL
);
29 void OnPaint(wxPaintEvent
& event
);
30 void OnSize(wxSizeEvent
& event
);
31 void OnEraseBackground(wxEraseEvent
& event
);
32 void OnChar(wxKeyEvent
& event
);
33 void OnMouseEvent(wxMouseEvent
& event
);
38 class MyFrame
: public wxFrame
41 MyFrame(wxFrame
*frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
42 long style
= wxDEFAULT_FRAME_STYLE
);
44 void OnExit(wxCommandEvent
& event
);
47 TestGLCanvas
* m_canvas
;