]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/isosurf/isosurf.h
New wxHashTable implementation when wxUSE_STL == 1. Replaces
[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
5cf036d0
DS
17{
18public:
19 bool OnInit();
8b089c5e
JS
20};
21
2db98bf5 22#if wxUSE_GLCANVAS
5cf036d0 23
8b089c5e
JS
24class TestGLCanvas: public wxGLCanvas
25{
5cf036d0
DS
26public:
27 TestGLCanvas(wxWindow *parent, wxWindowID id = wxID_ANY,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize, long style = 0,
30 const wxString& name = _T("TestGLCanvas"), int *gl_attrib = NULL);
8b089c5e 31
5cf036d0
DS
32 ~TestGLCanvas();
33
34 void OnPaint(wxPaintEvent& event);
35 void OnSize(wxSizeEvent& event);
36 void OnEraseBackground(wxEraseEvent& event);
37 void OnChar(wxKeyEvent& event);
38 void OnMouseEvent(wxMouseEvent& event);
39
40 DECLARE_EVENT_TABLE()
8b089c5e 41};
5cf036d0
DS
42
43#endif // #if wxUSE_GLCANVAS
44
8b089c5e
JS
45
46class MyFrame: public wxFrame
47{
48public:
5cf036d0
DS
49 MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos,
50 const wxSize& size, long style = wxDEFAULT_FRAME_STYLE);
51
52 virtual ~MyFrame();
8b089c5e 53
2db98bf5 54#if wxUSE_GLCANVAS
5cf036d0 55 TestGLCanvas *m_canvas;
2db98bf5 56#endif
8b089c5e 57
5cf036d0
DS
58private :
59
60 void OnExit(wxCommandEvent& event);
61
8b089c5e
JS
62DECLARE_EVENT_TABLE()
63};
64
5cf036d0 65#endif // #ifndef _WX_ISOSURF_H_
8b089c5e 66