[osg-users] OSX tessellator callback options.

Robert Osfield robert.osfield at gmail.com
Wed Oct 3 15:32:45 PDT 2007


Hi All,

Since it seems like its the CMake Xcode vs Makefile builds are the
original source for this issue I've added some extra controls into
OpenSceneGraph/CMakeLists.txt that should allow us to override the
defaults for each platform when they "mysteriously" break as seems to
have done over the last week.

Within ccmake you now are presented with the option :

   OSG_GLU_TESS_CALLBACK_TRIPLEDOT

Which defaults to OFF on all platforms except OSX and AIX.  You can
toggle this within ccmake and then configure and build what ever you
want.

Next up is the ability to override your platforms default setting via
the CMake variable  DDEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT, on the
command line you can do:

  cmake . -DDDEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT=ON

To enable the use of (...) version of glu tessellator callbacks or:

  cmake . -DDDEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT=OFF

To disable it.

My hope is that this will give you all enough flexibility to fix
things even if on your particular platform/OS version/build system
combination doesn't work you can override in a consistent manner.

Let me know how you get on.

Robert.

-- The addition to OpenSceneGraph/CMakeLists.txt looks like:


IF(NOT DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT)

    SET(DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT OFF)

    IF   (CMAKE_SYSTEM MATCHES "AIX.*")
        SET(DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT ON)
    ENDIF(CMAKE_SYSTEM MATCHES "AIX.*")

    IF   (APPLE)
        SET(DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT ON)
    ENDIF(APPLE)

ENDIF(NOT DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT)

OPTION(OSG_GLU_TESS_CALLBACK_TRIPLEDOT "Set to ON to build build with
(...) version of GLU tesselator callback"
${DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT})

IF   (OSG_GLU_TESS_CALLBACK_TRIPLEDOT)
    ADD_DEFINITIONS(-DGLU_TESS_CALLBACK_TRIPLEDOT)
ENDIF(OSG_GLU_TESS_CALLBACK_TRIPLEDOT)



More information about the osg-users mailing list