]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/isosurf/isosurf.h
Removed dummy wxFont == operator implementation (IIRC was needed to compile with...
[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
451c13c8 16class MyApp : public wxApp
5cf036d0
DS
17{
18public:
451c13c8 19 virtual bool OnInit();
8b089c5e
JS
20};
21
5cf036d0 22
451c13c8 23class TestGLCanvas : public wxGLCanvas
8b089c5e 24{
5cf036d0 25public:
451c13c8
VZ
26 TestGLCanvas(wxWindow *parent,
27 wxWindowID id = wxID_ANY,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 long style = 0,
31 const wxString& name = _T("TestGLCanvas"),
32 int *gl_attrib = NULL);
8b089c5e 33
451c13c8 34 virtual ~TestGLCanvas();
5cf036d0
DS
35
36 void OnPaint(wxPaintEvent& event);
37 void OnSize(wxSizeEvent& event);
5cf036d0
DS
38 void OnChar(wxKeyEvent& event);
39 void OnMouseEvent(wxMouseEvent& event);
40
451c13c8
VZ
41
42private:
43 wxGLContext* m_glRC;
44
45 DECLARE_NO_COPY_CLASS(TestGLCanvas)
5cf036d0 46 DECLARE_EVENT_TABLE()
8b089c5e 47};
5cf036d0 48
8b089c5e 49
451c13c8 50class MyFrame : public wxFrame
8b089c5e
JS
51{
52public:
451c13c8
VZ
53 MyFrame(wxFrame *frame,
54 const wxString& title,
55 const wxPoint& pos,
56 const wxSize& size,
57 long style = wxDEFAULT_FRAME_STYLE);
5cf036d0
DS
58
59 virtual ~MyFrame();
8b089c5e 60
5cf036d0 61 TestGLCanvas *m_canvas;
8b089c5e 62
5cf036d0 63private :
5cf036d0
DS
64 void OnExit(wxCommandEvent& event);
65
451c13c8 66 DECLARE_EVENT_TABLE()
8b089c5e
JS
67};
68
451c13c8 69#endif // _WX_ISOSURF_H_
8b089c5e 70