]> git.saurik.com Git - wxWidgets.git/blame - utils/glcanvas/samples/cube/cube.h
no message
[wxWidgets.git] / utils / glcanvas / samples / cube / cube.h
CommitLineData
6a1120ad
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: cube.h
3// Purpose: wxGLCanvas demo program
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CUBE_H_
13#define _WX_CUBE_H_
14
15#include "glcanvas.h"
16
17// Define a new application type
18class MyApp: public wxApp
19{
20public:
21 bool OnInit(void);
22 void InitGL(void);
23};
24
25// Define a new frame type
26class TestGLCanvas;
27class MyFrame: public wxFrame
c2265822
JS
28{
29public:
6a1120ad
JS
30 MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size,
31 long style = wxDEFAULT_FRAME_STYLE);
32
33 void OnExit(wxCommandEvent& event);
6a1120ad 34 bool OnClose(void);
c2265822 35public:
6a1120ad
JS
36 TestGLCanvas* m_canvas;
37
38DECLARE_EVENT_TABLE()
39};
40
41class TestGLCanvas: public wxGLCanvas
42{
43 public:
44 TestGLCanvas(wxWindow *parent, const wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
45 const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "TestGLCanvas");
46 ~TestGLCanvas(void);
47
48 void OnPaint(wxPaintEvent& event);
49 void OnSize(wxSizeEvent& event);
50 void OnEraseBackground(wxEraseEvent& event);
51
52DECLARE_EVENT_TABLE()
53};
54
55#endif
56