MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
357 stars 90 forks source link

Various glu* functions reported as deprecated #36

Closed goetzk closed 9 years ago

goetzk commented 9 years ago

Hi, Not sure if you consider this a problem (yet) or not but a number of glu* functions are deprecated in OS X 10.9. The game builds and loads ok so if anything this is a low priority issue.

A sample is included below; other then those mentioned gluBuild1DMipmaps, gluBuild2DMipmaps, gluUnProject, GLUquadricObj, gluNewQuadric and various others are also reported. gluErrorString is reported more then all others.

[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/model.cpp.o
In file included from /Users/kgoetz/git/megaglest-source/source/shared_lib/sources/graphics/model.cpp:22:
/Users/kgoetz/git/megaglest-source/source/shared_lib/include/graphics/gl/opengl.h:63:59: warning: 'gluErrorString' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
                        const char *errorString= reinterpret_cast<const char*>(gluErrorString(error));
                                                                               ^
/System/Library/Frameworks/OpenGL.framework/Headers/glu.h:260:24: note: 'gluErrorString' has been explicitly marked deprecated here
extern const GLubyte * gluErrorString (GLenum error) OPENGL_DEPRECATED(10_0, 10_9);
                       ^
1 warning generated.
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/model_manager.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/particle.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/pixmap.cpp.o
In file included from /Users/kgoetz/git/megaglest-source/source/shared_lib/sources/graphics/pixmap.cpp:28:
/Users/kgoetz/git/megaglest-source/source/shared_lib/include/graphics/gl/opengl.h:63:59: warning: 'gluErrorString' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
                        const char *errorString= reinterpret_cast<const char*>(gluErrorString(error));
                                                                               ^
/System/Library/Frameworks/OpenGL.framework/Headers/glu.h:260:24: note: 'gluErrorString' has been explicitly marked deprecated here
extern const GLubyte * gluErrorString (GLenum error) OPENGL_DEPRECATED(10_0, 10_9);
                       ^
/Users/kgoetz/git/megaglest-source/source/shared_lib/sources/graphics/pixmap.cpp:979:17: warning: 'gluScaleImage' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        GLenum glErr = gluScaleImage(   format,
                       ^
/System/Library/Frameworks/OpenGL.framework/Headers/glu.h:287:14: note: 'gluScaleImage' has been explicitly marked deprecated here
extern GLint gluScaleImage (GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void *dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid* dataOut) OPENGL_DEPRECATED(10_0, 10_9);
             ^
/Users/kgoetz/git/megaglest-source/source/shared_lib/sources/graphics/pixmap.cpp:991:58: warning: 'gluErrorString' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
                const char *errorString= reinterpret_cast<const char*>(gluErrorString(glErr));
                                                                       ^
/System/Library/Frameworks/OpenGL.framework/Headers/glu.h:260:24: note: 'gluErrorString' has been explicitly marked deprecated here
extern const GLubyte * gluErrorString (GLenum error) OPENGL_DEPRECATED(10_0, 10_9);
                       ^
3 warnings generated.
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/PNGReader.cpp.o
goetzk commented 9 years ago

The change has resolved all the deprecation warnings, thanks!