// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_CUBE_H_
#define _WX_CUBE_H_
-#include <wx/glcanvas.h>
+#include "wx/glcanvas.h"
// Define a new application type
class MyApp: public wxApp
const wxSize& size, long style = wxDEFAULT_FRAME_STYLE);
void OnExit(wxCommandEvent& event);
- void OnNewWindow();
- void OnDefRotateLeftKey();
- void OnDefRotateRightKey();
+ void OnNewWindow(wxCommandEvent& event);
+ void OnDefRotateLeftKey(wxCommandEvent& event);
+ void OnDefRotateRightKey(wxCommandEvent& event);
public:
TestGLCanvas* m_canvas;
DECLARE_EVENT_TABLE()
};
+#if wxUSE_GLCANVAS
+
class TestGLCanvas: public wxGLCanvas
{
friend class MyFrame;
public:
TestGLCanvas(wxWindow *parent, const wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = 0, const wxString& name = "TestGLCanvas");
+ long style = 0, const wxString& name = _T("TestGLCanvas"));
TestGLCanvas(wxWindow *parent, const TestGLCanvas &other,
const wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
- const wxString& name = "TestGLCanvas" );
+ const wxString& name = _T("TestGLCanvas") );
~TestGLCanvas(void);
#endif
+#endif
+