Status
======
-Done:
-- Initialize context with EGL
-- Keyboard support
-- Mouse support
-- Virtual keypad (on touchscreen)
-- Extract assets in cache dir on start-up
-
-TODO:
-- Open new windows (if that's possible)
-- Joystick support (xperia play...)
-- Display translucent keys on virtual keypad
-- API to detect touchscreen presence
-- API to disable assets extract
-- GLES2 support for geometry and menus
- (possibly also GLES1)
-- Generate freeglut_std.h with GLES1 or GLES2 or non-ES headers
-- Make EGL support reusable by Mesa X11
-- ...
+See http://freeglut.sourceforge.net/docs/android.php
Create a module compatible with the NDK build-system
cd cross-android-module/
cmake \
-D CMAKE_TOOLCHAIN_FILE=../android_toolchain.cmake \
- -D CMAKE_INSTALL_PREFIX=/freeglut \
+ -D CMAKE_INSTALL_PREFIX=/freeglut-gles2 \
-D FREEGLUT_GLES2=ON \
-D FREEGLUT_BUILD_DEMOS=NO \
..
- Copy Android.mk in the new 'freeglut/' directory :
- cp android/Android.mk freeglut/
+ cp ../android/gles2/Android.mk freeglut-gles2/
- Reference this module in your jni/Android.mk:
- LOCAL_STATIC_LIBRARIES := ... freeglut
+ LOCAL_STATIC_LIBRARIES := ... freeglut-gles2
...
- $(call import-module,freeglut)
+ $(call import-module,freeglut-gles2)
- You now can point your NDK_MODULE_PATH to this module!
- ndk-build NDK_MODULE_PATH=/usr/src/freeglut-3.0.0/freeglut/
+ ndk-build NDK_MODULE_PATH=/usr/src/freeglut-3.0.0/cross-android-module/freeglut-gles2/
Compile FreeGLUT for a traditional cross-compiler environment