corrections for Mac OS X compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -32,8 +32,18 @@
|
|||||||
#include "wx/timer.h"
|
#include "wx/timer.h"
|
||||||
#include "wx/glcanvas.h"
|
#include "wx/glcanvas.h"
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#ifdef __WXMAC__
|
||||||
#include <GL/glu.h>
|
# ifdef __DARWIN__
|
||||||
|
# include <OpenGL/gl.h>
|
||||||
|
# include <OpenGL/glu.h>
|
||||||
|
# else
|
||||||
|
# include <gl.h>
|
||||||
|
# include <glu.h>
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# include <GL/gl.h>
|
||||||
|
# include <GL/glu.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "isosurf.h"
|
#include "isosurf.h"
|
||||||
|
|
||||||
@@ -255,7 +265,12 @@ bool MyApp::OnInit(void)
|
|||||||
#else
|
#else
|
||||||
int gl_attrib[20] = { WX_GL_RGBA, WX_GL_MIN_RED, 1, WX_GL_MIN_GREEN, 1,
|
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_MIN_BLUE, 1, WX_GL_DEPTH_SIZE, 1,
|
||||||
WX_GL_DOUBLEBUFFER, None };
|
WX_GL_DOUBLEBUFFER,
|
||||||
|
# ifdef __WXMAC__
|
||||||
|
GL_NONE };
|
||||||
|
# else
|
||||||
|
None };
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(!doubleBuffer)
|
if(!doubleBuffer)
|
||||||
|
@@ -25,8 +25,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#ifndef __WXMAC__
|
#if !defined(__WXMAC__) || defined(__DARWIN__)
|
||||||
// does this not give redefine errors on other platforms ?
|
// these must be defined in the precompiled headers under CodeWarrior
|
||||||
#define wxInt32 int
|
#define wxInt32 int
|
||||||
#define wxUint32 unsigned int
|
#define wxUint32 unsigned int
|
||||||
#endif
|
#endif
|
||||||
|
@@ -21,9 +21,13 @@
|
|||||||
#define LW_H
|
#define LW_H
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#include <glu.h>
|
# ifdef __DARWIN__
|
||||||
|
# include <OpenGL/glu.h>
|
||||||
|
# else
|
||||||
|
# include <glu.h>
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
#include <GL/glu.h>
|
# include <GL/glu.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LW_MAX_POINTS 200
|
#define LW_MAX_POINTS 200
|
||||||
|
@@ -31,9 +31,13 @@
|
|||||||
|
|
||||||
#include "penguin.h"
|
#include "penguin.h"
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#include <glu.h>
|
# ifdef __DARWIN__
|
||||||
|
# include <OpenGL/glu.h>
|
||||||
|
# else
|
||||||
|
# include <glu.h>
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
#include <GL/glu.h>
|
# include <GL/glu.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define VIEW_ASPECT 1.3
|
#define VIEW_ASPECT 1.3
|
||||||
|
Reference in New Issue
Block a user