FreeGLUT 3.0 introduces support for the Android platform.
This platform is different than traditional desktop platforms, requiring cross-compilation, interfacing with a touchscreen, and ability for your application to be paused and resumed at any time.
Here's how:

Compiling

Using in your projects

Compile your own project using common build systems

For instance if you use the autotools:

      PATH=/usr/src/ndk-standalone-9/bin:$PATH
      export PKG_CONFIG_PATH=/usr/src/ndk-standalone-9/sysroot/usr/share/pkgconfig
      ./configure --host=arm-linux-androideabi --prefix=/somewhere
      make
      make install
    

If you use CMake, you may want to copy our Android toolchain 'android_toolchain.cmake':

      PATH=/usr/src/ndk-standalone-9/bin:$PATH
      export PKG_CONFIG_PATH=/usr/src/ndk-standalone-9/sysroot/usr/share/pkgconfig
      cp .../freeglut-x.x/android_toolchain.cmake .
      mkdir cross-android/
      cd cross-android/
      cmake \
        -D CMAKE_TOOLCHAIN_FILE=../android_toolchain.cmake \
        -D CMAKE_INSTALL_PREFIX=/somewhere \
        -D CMAKE_BUILD_TYPE=Debug \
        -D MY_PROG_OPTION=something ... \
        ..
      make -j4
      make install
    

Check progs/test-shapes-gles1/ in the FreeGLUT source distribution for a complete, stand-alone example.

Compile your own project using the NDK build-system

Roadmap

Done: TODO: Possibly implemented later:

New API

These new callbacks were added : New functions will be necessary to : (Work In Progress)

Notes

Links