// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation
-#pragma interface
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#include "isosurf.h"
+#include "../../sample.xpm"
+
// The following part is taken largely unchanged from the original C Version
GLboolean speed_test = GL_FALSE;
static void read_surface( const wxChar *filename )
{
- FILE *f = wxFopen(wxFNCONV(filename),_T("r"));
+ FILE *f = wxFopen(filename,_T("r"));
if (!f)
{
wxString msg = _T("Couldn't read ");
: 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();