// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation
-#pragma interface
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#include "wx/timer.h"
#include "wx/glcanvas.h"
+#include "wx/math.h"
#if defined(__WXMAC__) || defined(__WXCOCOA__)
# ifdef __DARWIN__
#include "isosurf.h"
-// The following part is taken largely unchanged from the original C Version
+#include "../../sample.xpm"
-#include <math.h>
+// The following part is taken largely unchanged from the original C Version
GLboolean speed_test = GL_FALSE;
GLboolean use_vertex_arrays = GL_FALSE;
int gl_attrib[20] = { WX_GL_RGBA, WX_GL_MIN_RED, 1, WX_GL_MIN_GREEN, 1,
WX_GL_MIN_BLUE, 1, WX_GL_DEPTH_SIZE, 1,
WX_GL_DOUBLEBUFFER,
-# ifdef __WXMAC__
+# if defined(__WXMAC__) || defined(__WXCOCOA__)
GL_NONE };
# else
None };
: wxFrame(frame, wxID_ANY, title, pos, size, style)
{
m_canvas = NULL;
+ SetIcon(wxIcon(sample_xpm));
}
MyFrame::~MyFrame()
TestGLCanvas::TestGLCanvas(wxWindow *parent, wxWindowID id,
const wxPoint& pos, const wxSize& size, long style,
const wxString& name, int* gl_attrib)
- : wxGLCanvas(parent, id, pos, size, style, name, gl_attrib)
+ : wxGLCanvas(parent, id, pos, size, style|wxFULL_REPAINT_ON_RESIZE, name, gl_attrib)
{
parent->Show(true);
SetCurrent();