]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/penguin/lw.h
offset version by 1 to avoid having compatibility_version of 0.0.0 under Darwin:...
[wxWidgets.git] / samples / opengl / penguin / lw.h
index 06d8d520ab6d42760aab1d56dc9c6cc849752861..0a4ca382d92d461b61e5e288742fbd7b8e65c3b4 100644 (file)
 #define LW_H
 
 #ifdef __WXMAC__
-#include <glu.h>
+#  ifdef __DARWIN__
+#    include <OpenGL/glu.h>
+#  else
+#    include <glu.h>
+#  endif
 #else
-#include <GL/glu.h>
+#  include <GL/glu.h>
 #endif
 
 #define LW_MAX_POINTS   200
@@ -57,13 +61,15 @@ typedef struct {
 extern "C" {
 #endif
 
-int       lw_is_lwobject(const char     *lw_file);
+#if wxUSE_GLCANVAS
+bool       lw_is_lwobject(const char     *lw_file);
 lwObject *lw_object_read(const char     *lw_file);
 void      lw_object_free(      lwObject *lw_object);
 void      lw_object_show(const lwObject *lw_object);
 
 GLfloat   lw_object_radius(const lwObject *lw_object);
 void      lw_object_scale (lwObject *lw_object, GLfloat scale);
+#endif
 
 #ifdef __cplusplus
 }