Paul Deppe wrote:
It looks like this is for windows/MSVC compilers only, but Norman might know more about it.Paul Deppe wrote:When compiling CVS simgear/sky/clouds3d I am getting numerous warnings: "WIN32 redefined", "initialization from int to float", "... isimplicitly atypename", and many others, and finally the following errorwhen compilingSkyTextureState.cpp:SkyTextureState.cpp:94: `glActiveTextureARB' undeclared (first use this function)Erik wrote:I know there is a fix in SimGear to include glext.h for windows platforms. Maybe one of the ifdefs fails (because a version number changed or something like that)?Erik, Here are some of the references to EXTGL_NEEDED in the SimGear root directory: -- configure.ac: AM_CONDITIONAL(EXTGL_NEEDED, test "x$ac_cv_header_windows_h" = "xyes")
Could it be you are linkijg against a wrong OpenGL library?extgl.h is #include'd by SkyTextureState.cpp via SkyTextureState.hpp via SkyContext.hpp. It looks like all the ifdef's are working properly. So I am stumped here - why can't the compiler see the declaration of glActiveTextureARB() when compiling SkyTextureState.cpp? I'm missing something.
It looks like glActiveTextureARB is an OpenGl 1.3 extension, on the other hand, I have included a (compile time) check to see if glActiveTextureARB is actually supported by the system and neglect this code otherwise.
Could you check if GL_ARB_multitexture is defined in your gl.h header file?
Erik
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel