]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/isosurf/isosurf.h
make wxArtProvider pure virtual (I was not so on
[wxWidgets.git] / samples / opengl / isosurf / isosurf.h
CommitLineData
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
16class MyApp: public wxApp
17{ public:
18 bool OnInit(void);
19};
20
21class TestGLCanvas: public wxGLCanvas
22{
23 public:
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);
27 ~TestGLCanvas(void);
28
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);
34
35DECLARE_EVENT_TABLE()
36};
37
38class MyFrame: public wxFrame
39{
40public:
41 MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size,
42 long style = wxDEFAULT_FRAME_STYLE);
43
44 void OnExit(wxCommandEvent& event);
45public:
46 TestGLCanvas* m_canvas;
47
48DECLARE_EVENT_TABLE()
49};
50
51#endif
52