X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=README.android;h=c0b43b828ac890c38396f68adbfe973486a5d5ed;hb=b1af5e27b969c29852c07c3badd2d13756b4829d;hp=e997a98a1caded81885464dfae141060049a8219;hpb=09b074a0de4b2290d801b27f00dbcc2a2980a87c;p=freeglut diff --git a/README.android b/README.android index e997a98..c0b43b8 100644 --- a/README.android +++ b/README.android @@ -1,24 +1,7 @@ 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 @@ -39,7 +22,7 @@ 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 \ .. @@ -48,17 +31,17 @@ Create a module compatible with the NDK build-system - 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