Initial Commit
176
.gitattributes
vendored
@ -1,176 +0,0 @@
|
||||
* text=auto !eol
|
||||
freeglut/freeglut/AUTHORS svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/CMakeLists.txt svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/COPYING svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/ChangeLog svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/README svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/README.android -text
|
||||
freeglut/freeglut/README.cmake -text
|
||||
freeglut/freeglut/README.cygwin_mingw svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/README.mingw_cross svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/README.win32 svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/android/Android.mk -text
|
||||
freeglut/freeglut/android/README -text
|
||||
freeglut/freeglut/android_toolchain.cmake -text
|
||||
freeglut/freeglut/config.h.in svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/doc/download.html svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/doc/freeglut.html svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/doc/freeglut_logo.png -text
|
||||
freeglut/freeglut/doc/freeglut_user_interface.html svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/doc/index.html svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/doc/ogl_sm.png -text
|
||||
freeglut/freeglut/doc/progress.html svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/doc/structure.html svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/freeglut.pc.in -text
|
||||
freeglut/freeglut/freeglut.rc.in svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/include/GL/freeglut.h svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/include/GL/freeglut_ext.h svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/include/GL/freeglut_std.h svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/include/GL/glut.h svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/mingw_cross_toolchain.cmake -text
|
||||
freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/progs/demos/Fractals/fractals.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/progs/demos/Fractals/fractals.dat svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/progs/demos/Fractals_random/fractals.dat svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/progs/demos/Fractals_random/fractals_random.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/progs/demos/Lorenz/lorenz.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/progs/demos/One/objects.ico -text
|
||||
freeglut/freeglut/progs/demos/One/one.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/progs/demos/One/one.rc -text
|
||||
freeglut/freeglut/progs/demos/Resizer/Resizer.cpp -text
|
||||
freeglut/freeglut/progs/demos/init_error_func/init_error_func.c -text
|
||||
freeglut/freeglut/progs/demos/multi-touch/multi-touch.c -text
|
||||
freeglut/freeglut/progs/demos/shapes/glmatrix.c -text
|
||||
freeglut/freeglut/progs/demos/shapes/glmatrix.h -text
|
||||
freeglut/freeglut/progs/demos/shapes/shapes.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.c -text
|
||||
freeglut/freeglut/progs/demos/spaceball/spaceball.c -text
|
||||
freeglut/freeglut/progs/demos/spaceball/vmath.c -text
|
||||
freeglut/freeglut/progs/demos/spaceball/vmath.h -text
|
||||
freeglut/freeglut/progs/demos/spaceball/vmath.inl -text
|
||||
freeglut/freeglut/progs/demos/subwin/subwin.c -text
|
||||
freeglut/freeglut/progs/demos/timer/timer.c -text
|
||||
freeglut/freeglut/progs/test-shapes-gles1/AndroidManifest.xml -text
|
||||
freeglut/freeglut/progs/test-shapes-gles1/CMakeLists.txt -text
|
||||
freeglut/freeglut/progs/test-shapes-gles1/android_toolchain.cmake -text
|
||||
freeglut/freeglut/progs/test-shapes-gles1/ndk/AndroidManifest.xml -text
|
||||
freeglut/freeglut/progs/test-shapes-gles1/ndk/jni/Android.mk -text
|
||||
freeglut/freeglut/progs/test-shapes-gles1/ndk/jni/Application.mk -text
|
||||
freeglut/freeglut/progs/test-shapes-gles1/test-shapes-gles1.c -text
|
||||
freeglut/freeglut/src/android/fg_cursor_android.c -text
|
||||
freeglut/freeglut/src/android/fg_ext_android.c -text
|
||||
freeglut/freeglut/src/android/fg_gamemode_android.c -text
|
||||
freeglut/freeglut/src/android/fg_init_android.c -text
|
||||
freeglut/freeglut/src/android/fg_input_devices_android.c -text
|
||||
freeglut/freeglut/src/android/fg_internal_android.h -text
|
||||
freeglut/freeglut/src/android/fg_joystick_android.c -text
|
||||
freeglut/freeglut/src/android/fg_main_android.c -text
|
||||
freeglut/freeglut/src/android/fg_main_android.h -text
|
||||
freeglut/freeglut/src/android/fg_runtime_android.c -text
|
||||
freeglut/freeglut/src/android/fg_spaceball_android.c -text
|
||||
freeglut/freeglut/src/android/fg_state_android.c -text
|
||||
freeglut/freeglut/src/android/fg_structure_android.c -text
|
||||
freeglut/freeglut/src/android/fg_window_android.c -text
|
||||
freeglut/freeglut/src/android/native_app_glue/README -text
|
||||
freeglut/freeglut/src/android/native_app_glue/android_native_app_glue.c -text
|
||||
freeglut/freeglut/src/android/native_app_glue/android_native_app_glue.h -text
|
||||
freeglut/freeglut/src/egl/fg_display_egl.c -text
|
||||
freeglut/freeglut/src/egl/fg_ext_egl.c -text
|
||||
freeglut/freeglut/src/egl/fg_init_egl.c -text
|
||||
freeglut/freeglut/src/egl/fg_init_egl.h -text
|
||||
freeglut/freeglut/src/egl/fg_internal_egl.h -text
|
||||
freeglut/freeglut/src/egl/fg_state_egl.c -text
|
||||
freeglut/freeglut/src/egl/fg_state_egl.h -text
|
||||
freeglut/freeglut/src/egl/fg_structure_egl.c -text
|
||||
freeglut/freeglut/src/egl/fg_structure_egl.h -text
|
||||
freeglut/freeglut/src/egl/fg_window_egl.c -text
|
||||
freeglut/freeglut/src/egl/fg_window_egl.h -text
|
||||
freeglut/freeglut/src/fg_callbacks.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_cursor.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_display.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_ext.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_font.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_font_data.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_gamemode.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_geometry.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_gl2.c -text
|
||||
freeglut/freeglut/src/fg_gl2.h -text
|
||||
freeglut/freeglut/src/fg_init.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_init.h -text
|
||||
freeglut/freeglut/src/fg_input_devices.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_internal.h svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_joystick.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_main.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_menu.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_misc.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_overlay.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_spaceball.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_state.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_stroke_mono_roman.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_stroke_roman.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_structure.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_teapot.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_teapot_data.h svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_videoresize.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/fg_window.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/freeglutdll.def.in svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/gles_stubs.c -text
|
||||
freeglut/freeglut/src/mswin/fg_cursor_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_display_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_ext_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_gamemode_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_init_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_input_devices_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_internal_mswin.h svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_joystick_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_main_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_menu_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_spaceball_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_state_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_structure_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/mswin/fg_window_mswin.c svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/util/xparsegeometry_repl.c -text
|
||||
freeglut/freeglut/src/util/xparsegeometry_repl.h -text
|
||||
freeglut/freeglut/src/x11 svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_cursor_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_display_x11_glx.c -text
|
||||
freeglut/freeglut/src/x11/fg_ext_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_gamemode_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_glutfont_definitions_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_init_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_input_devices_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_internal_x11.h svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_internal_x11_glx.h -text
|
||||
freeglut/freeglut/src/x11/fg_joystick_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_main_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_menu_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_spaceball_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_state_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_state_x11_glx.c -text
|
||||
freeglut/freeglut/src/x11/fg_state_x11_glx.h -text
|
||||
freeglut/freeglut/src/x11/fg_structure_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_window_x11.c svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/src/x11/fg_window_x11_glx.c -text
|
||||
freeglut/freeglut/src/x11/fg_window_x11_glx.h -text
|
||||
freeglut/freeglut/src/x11/fg_xinput_x11.c -text svnc_svn_005fkeywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/basic_page.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/docs/android.php -text
|
||||
freeglut/web-src/docs/api.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/docs/gles.php -text
|
||||
freeglut/web-src/docs/install.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/freeglut-style.css svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/help.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/images/OGL.png -text
|
||||
freeglut/web-src/images/chessdemo.png -text
|
||||
freeglut/web-src/images/freeglut_logo.png -text
|
||||
freeglut/web-src/images/freeglut_logo.xcf -text
|
||||
freeglut/web-src/images/freeglut_text.xcf -text
|
||||
freeglut/web-src/images/freshmeat.png -text
|
||||
freeglut/web-src/images/opengl.png -text
|
||||
freeglut/web-src/images/tuxcake.png -text
|
||||
freeglut/web-src/index.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/news.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/progress.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/template.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/uinfo.php svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/web-src/upload -text
|
5
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,5 +0,0 @@
|
||||
Thank you for submitting a pull request, it's much appreciated.
|
||||
|
||||
Because this is a mirror repo, we may not respond to or merge the PR in the timely manner you may expect.
|
||||
|
||||
One way to get more attention to your issue is to message our mailing list: `freeglut-developer at lists.sourceforge.net`
|
13
.github/issue_template.md
vendored
@ -1,13 +0,0 @@
|
||||
Thank you for submitting an issue, it's much appreciated.
|
||||
|
||||
Couple points before you create this ticket:
|
||||
|
||||
* Because this is a mirror repo, we may not respond to new issues in the timely manner you may expect.
|
||||
* Our official Bug/Issue list is located [here](https://sourceforge.net/p/freeglut/bugs/). If you create a duplicate issue in the official list in addition to GitHub, please reference the GitHub and SourceForge tickets in the other site's ticket so we may close both tickets.
|
||||
* There is also an official Feature Request list, located [here](https://sourceforge.net/p/freeglut/feature-requests/).
|
||||
* One way to get more attention to your issue is to message our mailing list: `freeglut-developer at lists.sourceforge.net`
|
||||
|
||||
If you still intend to make a ticket here, please provide the following:
|
||||
|
||||
* OS
|
||||
* FreeGLUT version
|
127
.gitignore
vendored
@ -1,94 +1,33 @@
|
||||
freeglut/freeglut/.vs
|
||||
freeglut/freeglut/INSTALL
|
||||
freeglut/freeglut/Makefile
|
||||
freeglut/freeglut/Makefile.in
|
||||
freeglut/freeglut/aclocal.m4
|
||||
freeglut/freeglut/autom4te.cache
|
||||
freeglut/freeglut/autoscan.log
|
||||
freeglut/freeglut/build
|
||||
freeglut/freeglut/build64
|
||||
freeglut/freeglut/compile
|
||||
freeglut/freeglut/config.guess
|
||||
freeglut/freeglut/config.h
|
||||
freeglut/freeglut/config.log
|
||||
freeglut/freeglut/config.lt
|
||||
freeglut/freeglut/config.status
|
||||
freeglut/freeglut/config.sub
|
||||
freeglut/freeglut/configure
|
||||
freeglut/freeglut/configure.scan
|
||||
freeglut/freeglut/cross-android-gles1
|
||||
freeglut/freeglut/cross-android-gles2
|
||||
freeglut/freeglut/cross-woe
|
||||
freeglut/freeglut/debugfiles.list
|
||||
freeglut/freeglut/debugsources.list
|
||||
freeglut/freeglut/depcomp
|
||||
freeglut/freeglut/doc/Makefile
|
||||
freeglut/freeglut/doc/Makefile.in
|
||||
freeglut/freeglut/freeglut-*.tar.gz
|
||||
freeglut/freeglut/include/GL/Makefile
|
||||
freeglut/freeglut/include/GL/Makefile.in
|
||||
freeglut/freeglut/include/Makefile
|
||||
freeglut/freeglut/include/Makefile.in
|
||||
freeglut/freeglut/install-sh
|
||||
freeglut/freeglut/libtool
|
||||
freeglut/freeglut/ltmain.sh
|
||||
freeglut/freeglut/man-pages
|
||||
freeglut/freeglut/missing
|
||||
freeglut/freeglut/native
|
||||
freeglut/freeglut/native-gles1
|
||||
freeglut/freeglut/native-gles2
|
||||
freeglut/freeglut/progs/Makefile
|
||||
freeglut/freeglut/progs/Makefile.in
|
||||
freeglut/freeglut/progs/demos/CallbackMaker/.deps
|
||||
freeglut/freeglut/progs/demos/CallbackMaker/.libs
|
||||
freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker
|
||||
freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.exe
|
||||
freeglut/freeglut/progs/demos/CallbackMaker/Makefile
|
||||
freeglut/freeglut/progs/demos/CallbackMaker/Makefile.in
|
||||
freeglut/freeglut/progs/demos/Fractals/.deps
|
||||
freeglut/freeglut/progs/demos/Fractals/.libs
|
||||
freeglut/freeglut/progs/demos/Fractals/Makefile
|
||||
freeglut/freeglut/progs/demos/Fractals/Makefile.in
|
||||
freeglut/freeglut/progs/demos/Fractals/fractals
|
||||
freeglut/freeglut/progs/demos/Fractals/fractals.exe
|
||||
freeglut/freeglut/progs/demos/Fractals_random/.deps
|
||||
freeglut/freeglut/progs/demos/Fractals_random/.libs
|
||||
freeglut/freeglut/progs/demos/Fractals_random/Makefile
|
||||
freeglut/freeglut/progs/demos/Fractals_random/Makefile.in
|
||||
freeglut/freeglut/progs/demos/Fractals_random/fractals_random
|
||||
freeglut/freeglut/progs/demos/Fractals_random/fractals_random.exe
|
||||
freeglut/freeglut/progs/demos/Lorenz/.deps
|
||||
freeglut/freeglut/progs/demos/Lorenz/.libs
|
||||
freeglut/freeglut/progs/demos/Lorenz/Makefile
|
||||
freeglut/freeglut/progs/demos/Lorenz/Makefile.in
|
||||
freeglut/freeglut/progs/demos/Lorenz/lorenz
|
||||
freeglut/freeglut/progs/demos/Lorenz/lorenz.exe
|
||||
freeglut/freeglut/progs/demos/Makefile
|
||||
freeglut/freeglut/progs/demos/Makefile.in
|
||||
freeglut/freeglut/progs/demos/One/.deps
|
||||
freeglut/freeglut/progs/demos/One/.libs
|
||||
freeglut/freeglut/progs/demos/One/Makefile
|
||||
freeglut/freeglut/progs/demos/One/Makefile.in
|
||||
freeglut/freeglut/progs/demos/One/one
|
||||
freeglut/freeglut/progs/demos/One/one.exe
|
||||
freeglut/freeglut/progs/demos/shapes/.deps
|
||||
freeglut/freeglut/progs/demos/shapes/.libs
|
||||
freeglut/freeglut/progs/demos/shapes/Makefile
|
||||
freeglut/freeglut/progs/demos/shapes/Makefile.in
|
||||
freeglut/freeglut/progs/demos/shapes/shapes
|
||||
freeglut/freeglut/progs/demos/shapes/shapes.exe
|
||||
freeglut/freeglut/progs/demos/smooth_opengl3/.deps
|
||||
freeglut/freeglut/progs/demos/smooth_opengl3/Makefile
|
||||
freeglut/freeglut/progs/demos/smooth_opengl3/Makefile.in
|
||||
freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3
|
||||
freeglut/freeglut/progs/demos/smooth_opengl3/smooth_opengl3.exe
|
||||
freeglut/freeglut/progs/test-shapes-gles1/cross-android
|
||||
freeglut/freeglut/progs/test-shapes-gles1/native
|
||||
freeglut/freeglut/src/*.la
|
||||
freeglut/freeglut/src/*.lo
|
||||
freeglut/freeglut/src/.deps
|
||||
freeglut/freeglut/src/.libs
|
||||
freeglut/freeglut/src/Makefile
|
||||
freeglut/freeglut/src/Makefile.in
|
||||
freeglut/freeglut/stamp-h1
|
||||
freeglut/freeglut/.vs
|
||||
Makefile.in
|
||||
Makefile
|
||||
INSTALL
|
||||
.deps
|
||||
aclocal.m4
|
||||
autom4te.cache
|
||||
compile
|
||||
config.guess
|
||||
config.sub
|
||||
configure
|
||||
configure.cache
|
||||
config.log
|
||||
config.status
|
||||
# config.h.in is now static and used with CMake, keep it:
|
||||
#config.h.in
|
||||
config.h
|
||||
depcomp
|
||||
install-sh
|
||||
ltmain.sh
|
||||
missing
|
||||
stamp-h1
|
||||
*.tar
|
||||
*.tar.gz
|
||||
*.tar.bz2
|
||||
*.zip
|
||||
*.o
|
||||
*.a
|
||||
*~
|
||||
# my build dirs:
|
||||
cross-android
|
||||
cross-woe
|
||||
build
|
||||
native
|
||||
|
@ -45,4 +45,10 @@ Matti Lehtonen
|
||||
Vincent Simonetti
|
||||
support for BlackBerry
|
||||
|
||||
Furkan Mudanyali
|
||||
dots-tb
|
||||
BigBlackOniiSan
|
||||
Team CBPS
|
||||
support for PS Vita
|
||||
|
||||
...and all the opengl-gamedev-l people that made Pawel start this project :)
|
@ -1,6 +1,17 @@
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0 FATAL_ERROR)
|
||||
PROJECT(freeglut)
|
||||
OPTION(VITA OFF)
|
||||
|
||||
if(VITA)
|
||||
if(DEFINED ENV{DOLCESDK})
|
||||
set(CMAKE_TOOLCHAIN_FILE "$ENV{DOLCESDK}/share/dolce.toolchain.cmake" CACHE PATH "toolchain file")
|
||||
include("$ENV{DOLCESDK}/share/dolce.cmake" REQUIRED)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -O3")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -o3")
|
||||
else()
|
||||
message(FATAL_ERROR "Please define DOLCESDK to point to your SDK path!")
|
||||
endif()
|
||||
endif()
|
||||
PROJECT(freeglut)
|
||||
# for multiarch LIBDIR support (requires cmake>=2.8.8)
|
||||
INCLUDE(GNUInstallDirs)
|
||||
|
||||
@ -33,7 +44,11 @@ set(SO_REV 0) # if nothing else changed increment this
|
||||
# FREEGLUT_BUILD_SHARED_LIBS is already a standard CMake variable, but we need to
|
||||
# re-declare it here so it will show up in the GUI.
|
||||
# by default, we want to build both
|
||||
OPTION(FREEGLUT_BUILD_SHARED_LIBS "Build FreeGLUT shared library." ON)
|
||||
if(NOT VITA)
|
||||
OPTION(FREEGLUT_BUILD_SHARED_LIBS "Build FreeGLUT shared library." ON)
|
||||
else()
|
||||
OPTION(FREEGLUT_BUILD_SHARED_LIBS "Build FreeGLUT shared library." OFF)
|
||||
endif()
|
||||
OPTION(FREEGLUT_BUILD_STATIC_LIBS "Build FreeGLUT static library." ON)
|
||||
|
||||
# option for whether warnings and errors should be printed
|
||||
@ -51,9 +66,9 @@ ELSE()
|
||||
ENDIF()
|
||||
|
||||
# OpenGL ES support
|
||||
IF(ANDROID)
|
||||
IF(VITA)
|
||||
OPTION(FREEGLUT_GLES "Use OpenGL ES (requires EGL)" ON)
|
||||
ELSE()
|
||||
ELSEIF()
|
||||
OPTION(FREEGLUT_GLES "Use OpenGL ES (requires EGL)" OFF)
|
||||
ENDIF()
|
||||
|
||||
@ -148,8 +163,7 @@ IF(WIN32)
|
||||
${CMAKE_BINARY_DIR}/freeglutdll.def # generated below from src/freeglutdll.def.in
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
ELSEIF(ANDROID OR BLACKBERRY)
|
||||
ELSEIF(ANDROID OR BLACKBERRY OR VITA)
|
||||
# BlackBerry and Android share some similar design concepts and ideas, as with many mobile devices.
|
||||
# As such, some classes can be shared between the two. XXX: Possibly rename shareable classes to
|
||||
# a more generic name. *_stub? *_mobile?
|
||||
@ -160,7 +174,18 @@ ELSEIF(ANDROID OR BLACKBERRY)
|
||||
src/android/fg_joystick_android.c
|
||||
src/android/fg_spaceball_android.c
|
||||
)
|
||||
IF(ANDROID)
|
||||
IF(VITA)
|
||||
LIST(APPEND FREEGLUT_SRCS
|
||||
src/vita/fg_init_vita.c
|
||||
src/vita/fg_input_vita.c
|
||||
src/vita/fg_internal_vita.h
|
||||
src/vita/fg_main_vita.c
|
||||
src/vita/fg_main_vita.h
|
||||
src/vita/fg_state_vita.c
|
||||
src/vita/fg_window_vita.c
|
||||
)
|
||||
add_definitions(-DVITA)
|
||||
ELSEIF(ANDROID)
|
||||
LIST(APPEND FREEGLUT_SRCS
|
||||
src/android/native_app_glue/android_native_app_glue.c
|
||||
src/android/native_app_glue/android_native_app_glue.h
|
||||
@ -305,13 +330,13 @@ IF(WIN32)
|
||||
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||
IF(CMAKE_COMPILER_IS_GNUCC AND NOT VITA)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
||||
IF(NOT(ANDROID OR BLACKBERRY OR FREEGLUT_WAYLAND))
|
||||
# not setting -ansi as EGL/KHR headers doesn't support it
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic")
|
||||
ENDIF()
|
||||
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
||||
ENDIF()
|
||||
|
||||
INCLUDE(CheckIncludeFiles)
|
||||
IF(UNIX AND NOT(ANDROID OR BLACKBERRY OR FREEGLUT_WAYLAND))
|
||||
@ -352,7 +377,6 @@ ENDIF()
|
||||
|
||||
INCLUDE(CheckFunctionExists)
|
||||
INCLUDE(CheckTypeSize)
|
||||
INCLUDE(CheckCCompilerFlag)
|
||||
CHECK_INCLUDE_FILES(sys/types.h HAVE_SYS_TYPES_H)
|
||||
CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)
|
||||
CHECK_INCLUDE_FILES(sys/time.h HAVE_SYS_TIME_H)
|
||||
@ -460,7 +484,7 @@ ELSE()
|
||||
IF(FREEGLUT_BUILD_STATIC_LIBS)
|
||||
SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME})
|
||||
ENDIF()
|
||||
IF(ANDROID)
|
||||
IF(ANDROID OR VITA)
|
||||
# Not in CMake toolchain file, because the toolchain
|
||||
# file is called several times and generally doesn't
|
||||
# seem to be meant for modifying CFLAGS:
|
||||
@ -468,17 +492,10 @@ ELSE()
|
||||
# '-O0 -gstabs+' helps the currently buggy GDB port
|
||||
# Too late to manipulate ENV: SET(ENV{CFLAGS} "$ENV{CFLAGS} -mandroid")
|
||||
# Not using _INIT variables, they seem to be used internally only
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND ANDROID)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mandroid")
|
||||
ENDIF()
|
||||
CHECK_C_COMPILER_FLAG(-O0 HAVE_O0_FLAG)
|
||||
IF(HAVE_O0_FLAG)
|
||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
|
||||
ENDIF()
|
||||
CHECK_C_COMPILER_FLAG(-gstabs+ HAVE_GSTABSP_FLAG)
|
||||
IF(HAVE_gstabsp_FLAG)
|
||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -gstabs+")
|
||||
ENDIF()
|
||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -gstabs+")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF(FREEGLUT_BUILD_SHARED_LIBS)
|
||||
@ -524,7 +541,11 @@ INSTALL(FILES ${FREEGLUT_HEADERS} DESTINATION include/GL COMPONENT Devel)
|
||||
|
||||
|
||||
# Optionally build demos, on by default.
|
||||
option( FREEGLUT_BUILD_DEMOS "Build FreeGLUT demos." ON )
|
||||
IF(VITA)
|
||||
option( FREEGLUT_BUILD_DEMOS "Build FreeGLUT demos." OFF )
|
||||
ELSE()
|
||||
option( FREEGLUT_BUILD_DEMOS "Build FreeGLUT demos." ON )
|
||||
ENDIF()
|
||||
|
||||
SET(DEMO_LIBS ${OPENGL_glu_LIBRARY} ${LIBS})
|
||||
# lib m for math, not needed on windows
|
||||
@ -585,6 +606,8 @@ IF(WIN32)
|
||||
ELSEIF(FREEGLUT_GLES)
|
||||
IF(ANDROID)
|
||||
SET(PC_LIBS_PRIVATE "-llog -landroid -lGLESv2 -lGLESv1_CM -lEGL -lm")
|
||||
ELSEIF(VITA)
|
||||
SET(PC_LIBS_PRIVATE "-lGLESv2 -lEGL -lpib -lm -DVITA -lSceThreadmgr_stub")
|
||||
ELSEIF(BLACKBERRY)
|
||||
IF(PLAYBOOK)
|
||||
SET(PC_LIBS_PRIVATE "-lbps -lscreen -lGLESv2 -lGLESv1_CM -lEGL -lm")
|
674
LICENSE
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
@ -17,6 +17,7 @@ Currently supported platforms:
|
||||
- macOS with XQuartz (no native Cocoa support yet)
|
||||
- Android (NDK)
|
||||
- BlackBerry
|
||||
- PS Vita
|
||||
|
||||
Consult the platform-specific readme files for details on the level of support
|
||||
and build instructions.
|
34
README.md
@ -1,21 +1,17 @@
|
||||
FreeGLUT
|
||||
========
|
||||
# Freeglut for Vita
|
||||
|
||||
This readme file applies to the git clone of FreeGLUT's svn repo on [sourceforge.net](http://freeglut.sourceforge.net/) that is hosted on [github](https://github.com/dcnieho/FreeGLUT). This is provided here to enable user to contribute easier.
|
||||
## To compile for DolceSDK:
|
||||
```
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DVITA=1
|
||||
make -j8
|
||||
make install
|
||||
```
|
||||
|
||||
Every effort is made to ensure that the ``git_master`` branch only progresses in a fastforward manner, but complete guarantees cannot be given as the [sourceforge.net trunk](https://sourceforge.net/p/freeglut/code/HEAD/tree/) is at all times leading.
|
||||
|
||||
I will be unable to merge a pull request if the github clone is behind ``svn/trunk`` on sourceforge.net. Should you detect this, please contact me, maybe through making an issue here on github.
|
||||
|
||||
This copy of the svn repository was not created with ``git svn`` but with the excellent svn support of [SmartGit](http://www.syntevo.com/).
|
||||
|
||||
|
||||
Notes to self on how to work with this:
|
||||
Basic workflow upon receiving a pull request is as follows:
|
||||
- Merge pull request on github
|
||||
- pull in changes to my local clone of the ``git_master`` branch.
|
||||
- cherry pick the merged commits onto my local clone of the ``svn/trunk`` branch
|
||||
- push these commits to svn remote (this alters the commits in the local
|
||||
``svn/trunk`` clone as extra meta data is added)
|
||||
- merge ``svn/trunk`` into local ``git_master``
|
||||
- push merge commit to github (its fast forward!)
|
||||
## Credits:
|
||||
- freeglut contributors
|
||||
- FMudanyali
|
||||
- dots-tb
|
||||
- BigBlackOniiSan
|
||||
- Team CBPS
|
11
README.vita
Normal file
@ -0,0 +1,11 @@
|
||||
# PS Vita CMake toolchain file, for use with DolceSDK
|
||||
# Requires DolceSDK
|
||||
#
|
||||
# Usage:
|
||||
# mkdir build
|
||||
# cd build
|
||||
# cmake .. -DVITA=1
|
||||
# make -j8
|
||||
# make install
|
||||
#
|
||||
# You need to use "glutInitContextVersion(2, 0)" in your program for OpenGL ES 2.0.
|
0
freeglut/freeglut/doc/download.html → doc/download.html
Executable file → Normal file
0
freeglut/freeglut/doc/freeglut.html → doc/freeglut.html
Executable file → Normal file
0
freeglut/freeglut/doc/freeglut_logo.png → doc/freeglut_logo.png
Executable file → Normal file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
freeglut/freeglut/doc/index.html → doc/index.html
Executable file → Normal file
0
freeglut/freeglut/doc/ogl_sm.png → doc/ogl_sm.png
Executable file → Normal file
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
0
freeglut/freeglut/doc/progress.html → doc/progress.html
Executable file → Normal file
0
freeglut/freeglut/doc/structure.html → doc/structure.html
Executable file → Normal file
0
freeglut/freeglut/freeglut.rc.in → freeglut.rc.in
Executable file → Normal file
@ -1 +0,0 @@
|
||||
../../android_toolchain.cmake
|
@ -1,14 +0,0 @@
|
||||
<?php
|
||||
require("template.php");
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("Basic Page");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
|
||||
<div class="textheader">What?</div>
|
||||
<p>freeglut is a completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to support the sample programs in the second edition OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical applications because it is simple, widely available and highly portable.</p>
|
||||
|
||||
<?php generateFooter(); ?>
|
@ -1,261 +0,0 @@
|
||||
<?php
|
||||
require("../template.php");
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("Android");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
|
||||
<p>
|
||||
|
||||
freeglut 3.0 introduces support for the Android platform.<br />
|
||||
|
||||
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.<br />
|
||||
|
||||
Here's how:
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
<ul>
|
||||
<li><a href="#compiling">Compiling</a></li>
|
||||
<li><a href="#using">Using in your projects</a></li>
|
||||
<li><a href="#roadmap">Roadmap</a></li>
|
||||
<li><a href="#api">New API</a></li>
|
||||
<li><a href="#notes">Notes</a></li>
|
||||
<li><a href="#links">Links</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<a name="compiling"></a>
|
||||
<h1>Compiling</h1>
|
||||
|
||||
<p>Note: a pre-built archive can be found here:
|
||||
<a href="http://www.beuc.net/tmp/freeglut3-android-modules.tar.gz">freeglut3-android-modules.tar.gz</a> (2014-06-01 / SVN revision 1686).</p>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
|
||||
Use your own cross-compiler for Android, or export the one from
|
||||
the Android NDK (API level 9 is required to use native activities):
|
||||
|
||||
<pre>
|
||||
/usr/src/android-ndk-r9d/build/tools/make-standalone-toolchain.sh \
|
||||
--platform=android-9 \
|
||||
--install-dir=/usr/src/ndk-standalone-9
|
||||
</pre>
|
||||
|
||||
</li>
|
||||
|
||||
<li>Compile freeglut and install it in your Android cross-compiler
|
||||
path:
|
||||
|
||||
<pre>
|
||||
PATH=/usr/src/ndk-standalone-9/bin:$PATH
|
||||
cd /usr/src/freeglut-3.0/
|
||||
mkdir cross-android-gles/
|
||||
cd cross-android-gles/
|
||||
cmake \
|
||||
-D CMAKE_TOOLCHAIN_FILE=../android_toolchain.cmake \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr/src/ndk-standalone-9/sysroot/usr \
|
||||
-D CMAKE_BUILD_TYPE=Debug \
|
||||
-D FREEGLUT_GLES=ON \
|
||||
-D FREEGLUT_BUILD_DEMOS=NO \
|
||||
..
|
||||
make -j4
|
||||
make install
|
||||
# Only static for now:
|
||||
rm -f /usr/src/ndk-standalone-9/sysroot/usr/lib/libfreeglut-gles.so*
|
||||
</pre>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<a name="using"></a>
|
||||
<h1>Using in your projects</h1>
|
||||
|
||||
<h2>Compile your own project using common build systems</h2>
|
||||
|
||||
<p>For instance if you use the autotools:</p>
|
||||
|
||||
<pre>
|
||||
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
|
||||
</pre>
|
||||
|
||||
<p>If you use CMake, you may want to copy our Android toolchain
|
||||
'android_toolchain.cmake':</p>
|
||||
|
||||
<pre>
|
||||
PATH="$PATH:/usr/src/android-ndk-r9d"
|
||||
PATH="$PATH:/usr/src/android-sdk-linux/tools"
|
||||
PATH="$PATH:/usr/src/android-sdk-linux/platform-tools"
|
||||
export PKG_CONFIG_PATH=/usr/src/ndk-standalone-9/sysroot/usr/share/pkgconfig
|
||||
cp .../freeglut-3.0/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
|
||||
</pre>
|
||||
|
||||
<p>Check <code>progs/test-shapes-gles1/</code> in the freeglut
|
||||
source distribution for a complete, stand-alone example.</p>
|
||||
|
||||
<h2>Compile your own project using the NDK build-system</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
|
||||
Create a module hierarchy pointing to freeglut, with our Android.mk:
|
||||
|
||||
<pre>
|
||||
mkdir freeglut-gles/
|
||||
cp .../freeglut-3.0/android/Android.mk freeglut-gles/
|
||||
ln -s /usr/src/ndk-standalone-9/sysroot/usr/include freeglut-gles/include
|
||||
ln -s /usr/src/ndk-standalone-9/sysroot/usr/lib freeglut-gles/lib
|
||||
</pre>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
Reference this module in your jni/Android.mk:
|
||||
|
||||
<pre>
|
||||
LOCAL_STATIC_LIBRARIES := ... freeglut-gles
|
||||
...
|
||||
$(call import-module,freeglut-gles)
|
||||
</pre>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
You now can point your NDK_MODULE_PATH to the directory containing the module:
|
||||
|
||||
<pre>
|
||||
ndk-build NDK_MODULE_PATH=.
|
||||
</pre>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<a name="roadmap"></a>
|
||||
<h1>Roadmap</h1>
|
||||
|
||||
Done:
|
||||
<ul>
|
||||
<li>Initialize context with EGL</li>
|
||||
<li>Keyboard support</li>
|
||||
<li>Mouse support</li>
|
||||
<li>Virtual keypad (on touchscreen)</li>
|
||||
<li>Extract assets in cache dir on start-up</li>
|
||||
<li>Make EGL support reusable by Mesa X11</li>
|
||||
<li>freeglut_std.h can be used with GLES1 or GLES2 or non-ES headers</li>
|
||||
<li>GLES1 and GLES2 support for geometry</li>
|
||||
<li>Pause/resume application support</li>
|
||||
<li>Callback to reload OpenGL resources lost during a pause</li>
|
||||
<li>Callback for application status (pause/resume) notifications</li>
|
||||
</ul>
|
||||
|
||||
TODO:
|
||||
<ul>
|
||||
<li>Multi-touch support (glutMultiMotionFunc & al.)</li>
|
||||
<li>Display translucent keys on virtual keypad</li>
|
||||
<li>API to access raw JVM structure and raw Activity(ies?)
|
||||
structure</li>
|
||||
<li>API to detect touchscreen presence</li>
|
||||
<li>API (or configuration file?) to disable assets extraction</li>
|
||||
<li>Accelerometer as a joystick input</li>
|
||||
</ul>
|
||||
|
||||
Possibly implemented later:
|
||||
<ul>
|
||||
<li>Support for menus and basic fonts</li>
|
||||
<li>Open new windows (if that's possible)</li>
|
||||
<li>Joystick support (note: xperia play doesn't have a joystick, but a
|
||||
touchpad)</li>
|
||||
</ul>
|
||||
|
||||
<a name="api"></a>
|
||||
<h1>New API</h1>
|
||||
|
||||
New callbacks were added : see <a href="api.php#Android">API page</a>.
|
||||
|
||||
New functions will be necessary to :
|
||||
<ul>
|
||||
<li>detect touchscreen presence</li>
|
||||
<li>disable assets extraction</li>
|
||||
</ul>
|
||||
|
||||
(Work In Progress)
|
||||
|
||||
<a name="notes"></a>
|
||||
<h1>Notes</h1>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
Android never truly kills an application, even when pressing the
|
||||
Back button, even when the application
|
||||
is <code>onDestroy</code>'d: the process is still running and
|
||||
ready to accept <code>onCreate</code> event to become active
|
||||
again.<br />
|
||||
|
||||
By default, freeglut <code>exit()</code>s when the last window is
|
||||
closed (without returning to your <code>main</code>). But this
|
||||
behavior can be changed
|
||||
with <code>glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, ...)</code>,
|
||||
in which case your have to either <code>exit()</code> yourself at
|
||||
the end of your <code>main</code>, or make sure
|
||||
your <code>main</code> can be called multiple times (in
|
||||
particular: beware of <code>static</code> variables that won't be
|
||||
reinitialized).
|
||||
</li>
|
||||
|
||||
<li>
|
||||
When a key is repeated, down and up events happen most often at
|
||||
the exact same time. This makes it impossible to animate based on
|
||||
key press time.<br />
|
||||
|
||||
e.g. down/up/wait/down/up rather than down/wait/down/wait/up<br/>
|
||||
|
||||
This looks like a bug in the Android virtual keyboard system :/
|
||||
Real buttons such as the Back button appear to work correctly
|
||||
(series of down events with proper getRepeatCount value).<br />
|
||||
|
||||
To work around this, freeglut provides its own minimal virtual
|
||||
keypad. It may be replaced by a virtual (touchscreen) joystick.
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<a name="links"></a>
|
||||
<h1>Links</h1>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>http://pygame.renpy.org/ : Pygame Subset for Android, it
|
||||
designed an API for managing Android app lifecycle
|
||||
(<code>android.check_pause</code> and
|
||||
<code>android.wait_for_resume</code>)</li>
|
||||
|
||||
</u>
|
||||
|
||||
<?php generateFooter(); ?>
|
@ -1,101 +0,0 @@
|
||||
<?php
|
||||
require("../template.php");
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("OpenGL ES");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
|
||||
<ul>
|
||||
<li><a name="#intro">Introduction</a></li>
|
||||
<li><a href="#compiling">Compiling</a></li>
|
||||
<li><a href="#using">Using in your projects</a></li>
|
||||
</ul>
|
||||
|
||||
<a name="intro"></a>
|
||||
<h1>Introduction</h1>
|
||||
|
||||
<p>freeglut can initialize an OpenGL ES (GLES) context. It works under platforms that supports EGL:</p>
|
||||
<ul>
|
||||
<li>Android (see <a href="android.php">dedicated page</a>)</li>
|
||||
<li>BlackBerry 10/BlackBerry PlayBook</li>
|
||||
<li>Unix X11 with Mesa EGL</li>
|
||||
<li>TODO: Raspberry PI: Mesa EGL doesn't work due to X11's fbdev limitation (no GL);
|
||||
it needs to use libraries from <tt>libraspeberrypi-dev</tt> which will shortcut X11
|
||||
[<a href="https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/app/ofAppEGLWindow.cpp">1</a>]
|
||||
[<a href="http://sourceforge.net/p/freeglut/feature-requests/71/">2</a>]
|
||||
[<a href="https://github.com/raspberrypi/userland/">3</a>]
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>freeglut ES is provided as a separate library, because OpenGL ES
|
||||
has a distinct library from plain OpenGL (<tt>-lGLESv1_CM
|
||||
-lGLESv2</tt> instead of <tt>-lGL</tt>, and different headers too).
|
||||
We could consider dynamically loading the OpenGL symbols we need,
|
||||
like <a href="http://libsdl.org/">libSDL</a>.</p>
|
||||
|
||||
<p>It is possible to select OpenGL ES 1, 2 or 3 (if the device and
|
||||
driver supports it) by calling
|
||||
e.g. <code>glutInitContextVersion(3,0)</code> before creating a
|
||||
window.</p>
|
||||
|
||||
<a name="compiling"></a>
|
||||
<h1>Compiling</h1>
|
||||
|
||||
<p>The following explains how to use freeglut ES for Mesa EGL.<br />
|
||||
See also the <a href="android.php">Android page</a>.</p>
|
||||
|
||||
<p>First, check <tt>README.cmake</tt> to install the dependencies for your system.</p>
|
||||
|
||||
<p>Then:</p>
|
||||
|
||||
<pre>
|
||||
apt-get install libgles1-mesa-dev libgles2-mesa-dev
|
||||
cd /usr/src/freeglut-3.0.0/
|
||||
mkdir native-gles/ && cd native-gles/
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=/tmp/freeglut-native-gles \
|
||||
-D CMAKE_BUILD_TYPE=Debug \
|
||||
-DFREEGLUT_GLES=ON \
|
||||
-DFREEGLUT_BUILD_DEMOS=NO \
|
||||
..
|
||||
make -j4
|
||||
make install
|
||||
</pre>
|
||||
|
||||
<a name="using"></a>
|
||||
<h1>Using in your projects</h1>
|
||||
|
||||
<p>Get the 'freeglut-gles' module through pkg-config.</p>
|
||||
|
||||
<p>If you use CMake, you can do that with:</p>
|
||||
|
||||
<pre>
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(freeglut REQUIRED freeglut-gles>=3.0.0)
|
||||
if(freeglut_FOUND)
|
||||
include_directories(${freeglut_STATIC_INCLUDE_DIRS})
|
||||
link_directories(${freeglut_STATIC_LIBRARY_DIRS})
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${freeglut_STATIC_CFLAGS_OTHER}")
|
||||
add_definitions(${freeglut_STATIC_CFLAGS_OTHER})
|
||||
endif()
|
||||
</pre>
|
||||
|
||||
<pre>
|
||||
cd your_project/
|
||||
mkdir native-gles/ && cd native-gles/
|
||||
PKG_CONFIG_PATH=/tmp/freeglut-native-gles/share/pkgconfig/ cmake ..
|
||||
</pre>
|
||||
|
||||
<p>Examples:</p>
|
||||
<ul>
|
||||
<li>OpenGL Wikibook's
|
||||
<a href="https://gitorious.org/wikibooks-opengl/modern-tutorials/source/HEAD:tut04_transform-gles2"><tt>tut04_transform-gles2</tt>
|
||||
example</a>: it uses a basic Makefile targeting <tt>freeglut-gles</tt></li>
|
||||
<li><tt>progs/test-shapes-gles1/</tt> in the source distribution:
|
||||
it is a standalone CMake app that uses freeglut GLES (v1).</li>
|
||||
</ul>
|
||||
|
||||
<?php generateFooter(); ?>
|
@ -1,56 +0,0 @@
|
||||
<?php
|
||||
require("../template.php");
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("Installation Instructions");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
|
||||
<div class="textheader">How to install freeglut...</div>
|
||||
<p>It's not *that* hard...</p>
|
||||
|
||||
<p>Presently, there are few pre-packaged installs, so the recommended method for most users is to follow these instructions. Even if you have a package system that includes freeglut, you may wish to manually install for a variety of reasons. A likely reason is simply that the latest version of freeglut may not have been packaged.</p>
|
||||
|
||||
<p>So...</p>
|
||||
|
||||
<div class="textheader">Download freeglut</div>
|
||||
<p>First, you need to download a freeglut release. Newer is generally better, but unless you know what you're doing, you should use a release marked "Stable." So download the newest Stable release that you can. (On the other hand, if you discover a bug and want to report it, it is helpful to try to run the "current" freeglut, as we have been known to fix some bugs before they are reported.)</p>
|
||||
|
||||
<div class="textheader">Untar and configure the packages</div>
|
||||
<p>Copy the tarball you downloaded into a temporary directory. Untar it as follows:</p>
|
||||
<pre>zcat freeglut-2.2.0.tar.bz2 | tar -vxf -</pre>
|
||||
|
||||
<div class="textheader">Change to the resulting directory:</div>
|
||||
<pre>cd freeglut-2.X.X</pre>
|
||||
|
||||
<div class="textheader">Now, configure the packages:</div>
|
||||
<pre>./configure</pre>
|
||||
|
||||
<p>NetBSD users may need a slightly different command:</p>
|
||||
|
||||
<pre>LDFLAGS=-Wl,-R/usr/X11R6/lib ./configure</pre>
|
||||
|
||||
<p>...to properly handle things.</p>
|
||||
|
||||
<div class="textheader">Build and install freeglut</div>
|
||||
<p>Once that completes, it's time to build and install freeglut (Note that you will have to be the superuser to make install).</p>
|
||||
|
||||
<p>This is as simple as:</p>
|
||||
|
||||
<pre>
|
||||
make all
|
||||
make install
|
||||
</pre>
|
||||
|
||||
<p>This will install the libraries, headers, and symlinks to replace GLUT.</p>
|
||||
|
||||
<p>For Android, please see the dedicated <a href="android.php">Android page</a>.</p>
|
||||
|
||||
<p>For BlackBerry support, please see <code>README.blackberry</code> in the project source code.</p>
|
||||
|
||||
<p>For OpenGL ES support (1.x and 2.x), please see the
|
||||
dedicated <a href="gles.php">GLES page</a>.</p>
|
||||
|
||||
<?php generateFooter(); ?>
|
@ -1,120 +0,0 @@
|
||||
body {
|
||||
margin-top: 0px ;
|
||||
margin-left: 140px ;
|
||||
background-color: #FFFFFF;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #DD3322;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
blockquote, pre {
|
||||
color: #000000 ;
|
||||
border: 1px #0000CC solid ;
|
||||
background-color: #C0C0FF ;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.textheader {
|
||||
font-size: 1.4em;
|
||||
border-bottom: 1px #111166 solid ;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.4em;
|
||||
border-bottom: 1px #111166 solid ;
|
||||
width: 100%;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.2em;
|
||||
border-bottom: 1px #999999 solid ;
|
||||
width: 100%;
|
||||
padding-left: 3px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.1em;
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
|
||||
.indent {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.navbar-left
|
||||
{
|
||||
font-size: 0.8em
|
||||
color: #000000 ;
|
||||
background-color: #EDEDFF ;
|
||||
position: absolute ;
|
||||
float: left;
|
||||
left: 0px ;
|
||||
top: 0px ;
|
||||
width: 130px ;
|
||||
border: 1px #A0A0A0 solid ;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.navbar-smalltext {
|
||||
font-size: 0.7em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.navbar-header {
|
||||
font-size: 1.0em;
|
||||
color: #151111;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.navbar-item {
|
||||
font-size: 1.0em ;
|
||||
color: #303010 ;
|
||||
background-color: #FFFFFF ;
|
||||
border: 0px #EDEDFF solid ;
|
||||
margin-top: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.img-right {
|
||||
float: right;
|
||||
color: #209040;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.news-item {
|
||||
border: 1px #000000 solid ;
|
||||
margin-bottom: 5px;
|
||||
padding: 8px;
|
||||
background-color: #EFEFFF;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.news-header {
|
||||
font-size: 1.4em;
|
||||
border: 1px #111166 solid ;
|
||||
background-color: #FEFEFF;
|
||||
color: #000000;
|
||||
padding: 5px;
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.news-subheader {
|
||||
font-size: 1.1em;
|
||||
border-bottom: 1px #111166 solid ;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
th, td {
|
||||
border-bottom: 1px solid #aaa;
|
||||
vertical-align: top;
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
<?php
|
||||
require("template.php");
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("How You Can Help");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
<div class="img-right">
|
||||
<img src="images/OGL.png" alt="OpenGL" /><br/>
|
||||
This is OpenGL at its finest.
|
||||
</div>
|
||||
|
||||
<div class="textheader">This is better than GLUT.</div>
|
||||
<p>freeglut started out as a GLUT clone, but now it's something much
|
||||
better than that. It's a GLUT replacement. Here are the features you
|
||||
have wanted -- and if you have ideas for more, share them (see below),
|
||||
or fork our <a href="https://github.com/dcnieho/FreeGLUT">github
|
||||
repository</a> and implement them! freeglut is under continuous
|
||||
development. Currently, work on 3.0 is in full swing. See <a
|
||||
href=progress.php>here</a> for the list of work that is still to be
|
||||
done.</p>
|
||||
|
||||
<div class="textheader">Everyone can help</div>
|
||||
<p>
|
||||
Free software projects depend on the community around them for their growth.
|
||||
It's by contributions that truly wonderful pieces of open and free software come to be.
|
||||
Contributions can be nearly anything. The point is involvement!</p>
|
||||
|
||||
<p>Examples:
|
||||
<ul>
|
||||
<li>Attack one of the <a href="progress.php">points on our todo
|
||||
list</a></li>
|
||||
<li>Use freeglut in your projects!</li>
|
||||
<li>Tell us what you like.</li>
|
||||
<li>Tell us what you'd change.</li>
|
||||
<li><a href="http://sourceforge.net/p/freeglut/bugs/">Report bugs.</a></li>
|
||||
<li>Write documentation.</li>
|
||||
<li>Spread the word about the project.</li>
|
||||
<li><a href="http://lists.sourceforge.net/lists/listinfo/freeglut-developer">Join</a> our development mailing list.</li>
|
||||
<li>If you changed or added a feature, send us <a
|
||||
href="http://sourceforge.net/p/freeglut/feature-requests/">a
|
||||
patch on sourceforge.net</a>, or <a
|
||||
href="https://github.com/dcnieho/FreeGLUT">a pull request on
|
||||
github</a> -- others might benefit from your work!</li>
|
||||
</ul></p>
|
||||
|
||||
<p>
|
||||
But simply, become involved!
|
||||
The project is not just software, it's the people that contribute, too.
|
||||
</p>
|
||||
|
||||
<div class="textheader">freeglut 3.0</div>
|
||||
<p>
|
||||
<a href=progress.php>Click here</a> for an overview of the major work,
|
||||
its status and planned milestones for freeglut 3.0 and beyond. Help on
|
||||
any of these plans, as well as suggestions and/or patches for anything
|
||||
else are very welcome!
|
||||
</p>
|
||||
|
||||
<div class="textheader">Go to SourceForge and...</div>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://sourceforge.net/p/freeglut/feature-requests/">Review current feature requests</a></li>
|
||||
<li><a href="http://sourceforge.net/p/freeglut/bugs/">Review current bug reports</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="textheader"><a name="svn"></a>Anonymous SVN Access</div>
|
||||
<p>To check out the most up to date development copy of freeglut, issue the following commands at your command line. See also <a href="http://sourceforge.net/p/freeglut/code/HEAD/tree/">SourceForge's Anonymous SVN Instructions</a>.</p>
|
||||
|
||||
<pre>
|
||||
svn co http://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut freeglut
|
||||
</pre>
|
||||
|
||||
<?php generateFooter(); ?>
|
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 802 B |
Before Width: | Height: | Size: 26 KiB |
@ -1,154 +0,0 @@
|
||||
<?php
|
||||
require("template.php");
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("About");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
<div class="img-right">
|
||||
<img src="images/chessdemo.png" alt="chess demo"/><br/>
|
||||
GLUT's "Chess" demo<br/>
|
||||
running with freeglut.
|
||||
</div>
|
||||
|
||||
<p></p>
|
||||
|
||||
<div class="textheader">What?</div>
|
||||
|
||||
<p>freeglut is a free-software/open-source alternative to the OpenGL Utility
|
||||
Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to support
|
||||
the sample programs in the second edition OpenGL 'RedBook'. Since then, GLUT has
|
||||
been used in a wide variety of practical applications because it is simple,
|
||||
widely available and highly portable.</p>
|
||||
|
||||
<p>GLUT (and hence freeglut) takes care of all the system-specific chores
|
||||
required for creating windows, initializing OpenGL contexts, and handling input
|
||||
events, to allow for trully portable OpenGL programs.</p>
|
||||
|
||||
<p>freeglut is released under the X-Consortium license.</p>
|
||||
|
||||
<div class="textheader">Why?</div>
|
||||
|
||||
<p>The original GLUT library seems to have been abandoned with the most recent
|
||||
version (3.7) dating back to August 1998. Its license does not allow anyone to
|
||||
distribute modified library code. This is really unfortunate, since GLUT is
|
||||
getting old and really needs improvement. Also, GLUT's license is incompatible
|
||||
with some software distributions (e.g., XFree86).</p>
|
||||
|
||||
<div class="textheader">Who?</div>
|
||||
|
||||
<p>freeglut was originally written by Pawel W. Olszta with contributions from
|
||||
Andreas Umbach and Steve Baker.</p>
|
||||
|
||||
<p>John F. Fay, John Tsiombikas, and Diederick C. Niehorster are the current
|
||||
maintainers of the freeglut project.</p>
|
||||
|
||||
<div class="textheader">When?</div>
|
||||
|
||||
<p>Pawel started freeglut development on December 1st, 1999. The project is now
|
||||
virtually a 100% replacement for the original GLUT with only a few departures
|
||||
(such as the abandonment of SGI-specific features such as the Dials&Buttons
|
||||
box and Dynamic Video Resolution) and a shrinking set of bugs.</p>
|
||||
|
||||
<p>freeglut adds some additional features over the basic GLUT functionality,
|
||||
such as a larger set of predefined objects to use, the ability to run single
|
||||
iterations of the event loop, or exit from it gracefully, mousewheel input
|
||||
callbacks, optional OpenGL core/compatibility profile context creation,
|
||||
multitouch/multi-pointer input, and support for a larger and growing set of
|
||||
platforms, being just some of them.</p>
|
||||
|
||||
<div class="textheader"><a name="download"></a>Help out!</div>
|
||||
|
||||
<p>We are looking for developers to help out with further work on the Android
|
||||
and BlackBerry 10 ports. Furthermore, ports to Cocoa on OSX, and maybe even
|
||||
Wayland are planned, along with some enhancements to the API and implementation.</p>
|
||||
|
||||
<p>See <a href="progress.php">here</a> for an overview of the major points
|
||||
on our todo list. You can easily help out by forking the unofficial clone
|
||||
of our <a
|
||||
href="https://sourceforge.net/p/freeglut/code/HEAD/tree/">sourceforge.net
|
||||
SVN repository</a> on <a
|
||||
href="https://github.com/dcnieho/FreeGLUT">github</a>. For more
|
||||
information about helping out, see the <a href="help.php">Help Out
|
||||
page</a> and <a
|
||||
href="http://lists.sourceforge.net/lists/listinfo/freeglut-developer">join</a>
|
||||
the <a
|
||||
href="mailto:freeglut-developer@lists.sourceforge.net">freeglut-developer</a>
|
||||
mailing list.</p>
|
||||
|
||||
<div class="textheader"><a name="download"></a>Downloads...</div>
|
||||
<p>Below are file links for the freeglut project. README files are included. Have fun!</p>
|
||||
|
||||
<div class="indent">
|
||||
<div class="textheader">Testing Releases</div>
|
||||
<p>Feel free to test by downloading a <a
|
||||
href="https://sourceforge.net/p/freeglut/code/HEAD/tarball?path=/trunk/freeglut/freeglut">tarball
|
||||
of current trunk</a>, or <a href="help.php#svn">grabbing a copy from
|
||||
svn</a>, and give us feedback on how it worked for you. All this
|
||||
will eventually become a freeglut 3.4 release.</p>
|
||||
<p>There are no presently active testing releases.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="indent">
|
||||
<div class="textheader">Stable Releases</div>
|
||||
<p>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-3.2.1.tar.gz?download">freeglut 3.2.1</a> [<i>Released: 29 September 2019</i>]<br/>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-3.2.0.tar.gz?download">freeglut 3.2.0</a> [<i>Released: 16 September 2019</i>]<br/>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-3.0.0.tar.gz?download">freeglut 3.0.0</a> [<i>Released: 7 March 2015</i>]<br/>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-2.8.1.tar.gz?download">freeglut 2.8.1</a> [<i>Released: 5 April 2013</i>]<br/>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-2.8.0.tar.gz?download">freeglut 2.8.0</a> [<i>Released: 2 January 2012</i>]<br/>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-2.6.0.tar.gz?download">freeglut 2.6.0</a> [<i>Released: 27 November 2009</i>]<br/>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-2.4.0.tar.gz?download">freeglut 2.4.0</a> [<i>Released: 9 June 2005</i>]<br/>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-2.2.0.tar.gz?download">freeglut 2.2.0</a> [<i>Released: 12 December 2003</i>]<br/>
|
||||
<a href="http://prdownloads.sourceforge.net/freeglut/freeglut-2.0.1.tar.gz?download">freeglut 2.0.1</a> [<i>Released: 23 October 2003</i>]
|
||||
</p>
|
||||
|
||||
<div class="textheader">Prepackaged Releases</div>
|
||||
|
||||
<p>The freeglut project does not support packaged versions of freeglut
|
||||
excepting, of course, the tarballs distributed here. However, various members of
|
||||
the community have put time and effort into providing source or binary rollups,
|
||||
and we thank them for their efforts. Here's a list which is likely
|
||||
incomplete:</p>
|
||||
|
||||
<!--
|
||||
<p>
|
||||
Andy Piper's <a href="http://jumpgate.homelinux.net/random/freeglut-fedora/">RedHat Fedora RPMs</a><br/>
|
||||
Gentoo <a href="http://bugs.gentoo.org/show_bug.cgi?id=36783">freeglut-2.2.0.ebuild</a><br/>
|
||||
Nigel Stewart's <a href="http://www.nigels.com/glt/devpak/">DevPak</a> for <a href="http://www.bloodshed.net/dev/devcpp.html">Dev C++</a>
|
||||
</p>
|
||||
-->
|
||||
<p>
|
||||
<a href="http://www.transmissionzero.co.uk/software/freeglut-devel/">Martin Payne's Windows binaries (MSVC and MinGW)</a><br/>
|
||||
<a href="http://tisch.sf.net/freeglut-2.6.0-mpx-latest.patch">Florian Echtler's MPX Patch</a>
|
||||
</p>
|
||||
|
||||
<p>If you have problems with these packages, please contact their maintainers - we of the freeglut team probably can't help.</p>
|
||||
|
||||
<div class="textheader">Development Releases</div>
|
||||
<p>
|
||||
<a href="https://sourceforge.net/p/freeglut/code/HEAD/tarball?path=/trunk/freeglut/freeglut">SVN trunk tarball</a><br/>
|
||||
<a href="help.php#svn">Anonymous SVN Instructions</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="textheader">Questions?</div>
|
||||
<p>Don't be afraid to ask for help. We don't bite. Much.</p>
|
||||
<p>Send freeglut related questions to the appropriate freeglut mailing list:</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="mailto:freeglut-developer@lists.sourceforge.net">freeglut-developer</a> [<a href="http://lists.sourceforge.net/lists/listinfo/freeglut-developer">Subscribe</a>],</li>
|
||||
<li><a href="mailto:freeglut-announce@lists.sourceforge.net">freeglut-announce</a> [<a href="http://lists.sourceforge.net/lists/listinfo/freeglut-announce">Subscribe</a>], and</li>
|
||||
<li><a href="mailto:freeglut-bugs@lists.sourceforge.net">freeglut-bugs</a> [<a href="http://lists.sourceforge.net/lists/listinfo/freeglut-bugs">Subscribe</a>]</li>
|
||||
</ul>
|
||||
|
||||
<p>Please note that <a
|
||||
href="http://sourceforge.net/p/freeglut/mailman/?source=navbar">you must
|
||||
subscribe before you can post</a> to our mailing lists. Sorry for the
|
||||
inconvenience.</p>
|
||||
|
||||
|
||||
<?php generateFooter(); ?>
|
@ -1,134 +0,0 @@
|
||||
<?php
|
||||
require("template.php");
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("News");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
|
||||
<div class="news-item">
|
||||
<div class="news-header">freeglut 2.8.1 Released [5 April 2013]</div>
|
||||
<p>A new bugfix release of "freeglut" is now available. Here is a
|
||||
incomplete list of fixes and enhancements:</p>
|
||||
<ul>
|
||||
<li>Visual Studio 2012 project files, and a fix for the disappearing
|
||||
windows with this toolset.</li>
|
||||
<li>X11 menu regression fixed, menu behavior improved on Windows.</li>
|
||||
<li>Now using monotonic clock on X11.</li>
|
||||
<li>GameMode now doesn't attempt to change unspecified display params to
|
||||
arbitrary defaults, and not changing display mode when unnecessary to
|
||||
avoid flicker.</li>
|
||||
<li>On Windows, windows no longer attain focus as soon as the mouse
|
||||
enters them</li>
|
||||
<li>Various demo enhancements.</li>
|
||||
<li>Many bugs have been fixed.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="news-item">
|
||||
<div class="news-header">freeglut 2.8.0 Released [2 January 2012]</div>
|
||||
<p>After two years of quiet maintenance, a new version of "freeglut" has been released. Here are some of the major changes:</p>
|
||||
<ul>
|
||||
<li>There are now callbacks to support multitouch capability.</li>
|
||||
<li>Solaris and OSX support have improved.</li>
|
||||
<li>Fullscreen mode and Game mode behave better.</li>
|
||||
<li>Addition of Visual Studio 2010 projects & solutions.</li>
|
||||
<li>Many bugs have been fixed.</li>
|
||||
</ul>
|
||||
<p>Visit the downloads section to get your hands on the latest release.</p>
|
||||
</div>
|
||||
|
||||
<div class="news-item">
|
||||
<div class="news-header">freeglut 2.6.0 Released [27 November 2009]</div>
|
||||
<p>The long awaited 2.6.0 release has arrived! This release features:</p>
|
||||
<ul>
|
||||
<li>Truly full screen windows under X11 when calling <code>glutFullScreen()</code>.</li>
|
||||
<li>Spaceball support on Linux.</li>
|
||||
<li>Addition of the "atexit" hack, making the freeglut Windows DLL binary compatible with GLUT.</li>
|
||||
<li>Addition of Visual Studio 2008 projects & solutions.</li>
|
||||
<li>Many other fixes.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="news-item">
|
||||
<div class="news-header">API is now online! [30 December 2003]</div>
|
||||
<p>The <a href="/docs/api.php">Application Programming Interface</a> documentation is now online, in addition to being distributed with the tarball. There have been a few changes to freeglut since the last update to the API documentation, and if anyone would like to make the appropriate updates, the whole project would appreciate it. Despite that, it's nearly wholly up-to-date. Please make good use of it.</p>
|
||||
</div>
|
||||
|
||||
<div class="news-item">
|
||||
<div class="news-header">freeglut 2.2.0 Released [12 December 2003]</div>
|
||||
<p>The freeglut Project proudly announces freeglut 2.2.0. This version contains:</p>
|
||||
<ul>
|
||||
<li>Mousewheel Support for Win32 & X11</li>
|
||||
<li>More unified Win32/*nix behavior and code</li>
|
||||
<li>Code style cleanups</li>
|
||||
<li>Visibility support in Win32</li>
|
||||
<li>Many other Good Bug Fixes™</li>
|
||||
</ul>
|
||||
<p>[Read <a href="http://sourceforge.net/project/shownotes.php?release_id=203468">the full ChangeLog</a>.]</p>
|
||||
|
||||
<p>Click the Downloads link on the left and enjoy!</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="news-item">
|
||||
<div class="news-header">freeglut 2.0.1 Released [23 October 2003]</div>
|
||||
<p>2.0.1 fixes a number of bugs with menus, especially in the UNIX_X11.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="news-item">
|
||||
<div class="news-header">freeglut 2.0.0 is GOLD! [29 September 2003]</div>
|
||||
|
||||
<div class="img-right"><img src="images/tuxcake.png" alt="Tux Cake"/><br/>
|
||||
A cake one of our developers<br/>
|
||||
(John Fay) received in honor<br/>
|
||||
of his freeglut work.</div>
|
||||
|
||||
<p>freeglut 2.0.0 marks the first true departure from Mark Kilgard's original GLUT library, adding much-requested features while still retaining not only high backward compatibility with older implementations of GLUT, but all the polish of the original -- and more!</p>
|
||||
|
||||
<div class="news-subheader">What have we done? A lot.</div>
|
||||
<p>This isn't the GLUT you remember.</p>
|
||||
|
||||
<p>This is an incomplete list -- there are simply too many improvements to write!</p>
|
||||
<p>General Improvements:</p>
|
||||
<ul><li>You can now control program behavior when a GLUT window is closed by the user, rather than simply exiting. Options include:
|
||||
<ul>
|
||||
<li>Immediate exit() (old GLUT behavior)</li>
|
||||
<li>glutMainLoop() returns to you</li>
|
||||
<li>continue execution</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Option to share a rendering context for each new window</li>
|
||||
<li>Interruptable glutMainLoop (glutMainLoopEvent, glutLeaveMainLoop)</li>
|
||||
<li>Window-specific callback functions (Close, WindowManager Close, Menu destruction)</li>
|
||||
<li>User-specified data in Windows and Menus</li>
|
||||
<li>Additional font statistics (stroke and bitmap heights...)</li>
|
||||
<li>New font functions to allow the user to print strings instead of one character at a time</li>
|
||||
<li>New primitives (RhombicDodecahedron, SierpinskiSponge)</li>
|
||||
<li>Good-looking menus</li>
|
||||
</ul>
|
||||
|
||||
<p>XFree86 GameMode improvements:</p>
|
||||
<ul><li>force re-establishment of the original video mode by the X server even if the application exits immediately after leaving game mode</li>
|
||||
<li>make sure that the X server has finished game mode preparations before continuing; fixes window sliding(missed mouse grab) and application exits.</li>
|
||||
<li>fix support for game mode resolution equal to maximum screen resolution</li>
|
||||
<li>restore original view port and Pointer position when leaving game mode</li></ul>
|
||||
|
||||
<p>Win32 GameMode improvements:</p>
|
||||
<ul><li>if desired display frequency for entering game mode is not found, a display mode without matching display frequency is tried.</li></ul>
|
||||
|
||||
<div class="news-subheader">Get involved!</div>
|
||||
|
||||
<p>If you like freeglut, think about helping out with the project. There's always more to be done to enhance the library!</p>
|
||||
|
||||
<p>Documentation, example programs, suggestions for improvement -- they're all needed.</p>
|
||||
|
||||
<p>Look at the "How You Can Help" section on the left for ideas on how you can do your part!</p>
|
||||
|
||||
</div>
|
||||
|
||||
<?php generateFooter(); ?>
|
@ -1,100 +0,0 @@
|
||||
<?php
|
||||
require("template.php");
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("A Look At Progress");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
|
||||
<div class="textheader">freeglut 3.0 an onwards</div>
|
||||
<p>
|
||||
Major work, its status and planned milestone. <a
|
||||
href="help.php">Help</a> on any of these plans is very welcome! Fork the
|
||||
<a href="">github repository</a>, <a
|
||||
href="http://lists.sourceforge.net/lists/listinfo/freeglut-developer">join</a>
|
||||
and contact us on the <a
|
||||
href="mailto:freeglut-developer@lists.sourceforge.net">freeglut-developer</a>
|
||||
mailing list to discuss your plans, and get cracking!</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Feature</th><th>Status</th><th>Milestone</th></tr>
|
||||
<tr><td>Android port</td><td>Basic but complete functionality by <a href="http://www.beuc.net/">Sylvain
|
||||
Beucler</a>, but there are <a href="docs/android.php#roadmap">todo
|
||||
points</a></td><td>Basic functionality as is now done: 3.0. Future
|
||||
enhancements: 3.0 or later.</td></tr>
|
||||
|
||||
<tr><td>BlackBerry 10 port</td><td>Basic but complete functionality
|
||||
by <a href="https://github.com/rcmaniac25">Vinnie
|
||||
Simonetti</a>.</td><td>Basic functionality as is now done: 3.0. Future
|
||||
enhancements: 3.0 or later.</td></tr>
|
||||
|
||||
<tr><td>Windows 8 touch support</td><td>Windows 8 replaced how touch
|
||||
input works, so we need to implement support for that.</td><td>3.2</td></tr>
|
||||
|
||||
<tr><td>10bit display formats</td><td>GLUT supports that but freeglut
|
||||
currently does not. Unfinished effort to implement <a
|
||||
href="https://github.com/dcnieho/FreeGLUT/tree/feature_30bit_framebuffer">here</a>.</td><td>3.0
|
||||
or later.</td></tr>
|
||||
|
||||
<tr><td>handling non-western script input to windows</td><td>For
|
||||
Windows, see associated <a
|
||||
href="https://github.com/dcnieho/FreeGLUT/tree/feature_IMECHAR_callback">github
|
||||
branch</a>. What can be done on the Linux side?</td><td>Figure this out
|
||||
for 3.2</td></tr>
|
||||
|
||||
<tr><td>option to not deinitialize when mainloop terminates</td><td>As
|
||||
is often requested, in some usage cases, it would be advantageous if
|
||||
freeglut did not automatically deinitialize when its last window is
|
||||
closed. This has been implemented, but is awaiting testing on platforms
|
||||
other than windows. Discussed <a
|
||||
href="http://sourceforge.net/p/freeglut/mailman/message/32926301/">here</a>.</td><td>As
|
||||
it has potential complications on mobile platforms, it was decided to
|
||||
leave this feature until after 3.0.</td></tr>
|
||||
|
||||
<tr><td>High-DPI awareness.</td><td>As discussed <a
|
||||
href="http://sourceforge.net/p/freeglut/mailman/message/30859054/">here</a>,
|
||||
it is unclear what should be done. See also associated <a
|
||||
href="https://github.com/dcnieho/FreeGLUT/tree/feature_DPI_awareness">github
|
||||
branch</a>, though in the end maybe no code has to be added to freeglut
|
||||
for this at all, its the host program's responsibility to decide on DPI
|
||||
awareness for his work.</td><td>Figure this out for 3.2</td></tr>
|
||||
|
||||
<tr><td>GL2+ and GLES 1/2 clean API for fonts and menus</td><td>For
|
||||
stroke fonts, we can use a similar approach as for the shapes, should
|
||||
thus be straightforward. For the bitmap fonts, this is more complex.
|
||||
John T suggested "using a glyph atlas texture with GL_STREAM_DRAW VBOs",
|
||||
which would get us somewhere. Code could be ripped from his <a
|
||||
href="http://nuclear.mutantstargoat.com/sw/libdrawtext/">libdrawtext
|
||||
library</a></td><td>The sooner the better, but will have to wait for
|
||||
asap after 3.0.</td></tr>
|
||||
|
||||
<tr><td>At runtime loading of OpenGL or OpenGL ES libraries,
|
||||
like SDL.</td><td>Currently CMake variables define at compile time which
|
||||
of the two the library will be compiled against. No work has been
|
||||
done to move this to an at-runtime API.</td><td>After 3.0</td></tr>
|
||||
|
||||
<tr><td>Position callback</td><td>Done: we now have a position callback
|
||||
to notify the client when the position of the window
|
||||
changed.</td><td>3.0</td></tr>
|
||||
|
||||
<tr><td>Carbon/Cocoa port</td><td>Not started. As Carbon is legacy, one
|
||||
might want to port to Cocoa first or even forget about Carbon all
|
||||
together.</td><td>Undecided</td></tr>
|
||||
|
||||
<tr><td>Unicode support</td><td>Not started, we'd need to discuss this
|
||||
carefully on the mailing list first to minimize impact on the
|
||||
API.</td><td>Undecided</td></tr>
|
||||
|
||||
<tr><td>Complete glutInitDisplayString support</td><td>freeglut now only
|
||||
partially supports glutInitDisplayString, any spec (comparator and
|
||||
value) after each token are ignored. This is a significant way in which
|
||||
freeglut is not compatible with GLUT. Could be a nice project for
|
||||
someone who want to become familiar with the intricacies of requesting
|
||||
specific display formats on at least one of the various window servers
|
||||
(Windows, X11 and Android/BlackBerry 10/EGL at the
|
||||
moment).</td><td>Undecided</td></tr>
|
||||
</table>
|
||||
|
||||
<?php generateFooter(); ?>
|
@ -1,113 +0,0 @@
|
||||
<?php
|
||||
global $site_title, $title, $sidebarentries;
|
||||
$site_title = "The freeglut Project";
|
||||
$title = $site_title . " :: The Next Generation of GLUT";
|
||||
|
||||
# 1's designate spaces in the sidebar
|
||||
# Format for an entry:
|
||||
# array(name=>"Name of Page", page=>"Filename/URL"),
|
||||
#
|
||||
$sidebarentries = array(0, # We skip this entry anyway...
|
||||
array("name"=>"About", "page"=>"/index.php"),
|
||||
array("name"=>"News", "page"=>"/news.php"),
|
||||
array("name"=>"Progress", "page"=>"/progress.php"),
|
||||
array("name"=>"Help Out", "page"=>"/help.php"),
|
||||
1,
|
||||
array("name"=>"Download", "page"=>"/index.php#download"),
|
||||
1,
|
||||
array("name"=>"Install", "page"=>"/docs/install.php"),
|
||||
array("name"=>"API", "page"=>"/docs/api.php"),
|
||||
array("name"=>"OpenGL Wikibook", "page"=>"http://en.wikibooks.org/wiki/OpenGL_Programming"),
|
||||
1,
|
||||
array("name"=>"Report a Bug", "page"=>"http://sourceforge.net/p/freeglut/bugs/"),
|
||||
array("name"=>"Request a Feature", "page"=>"http://sourceforge.net/p/freeglut/feature-requests/"),
|
||||
array("name"=>"Project Interface", "page"=>"http://sourceforge.net/projects/freeglut/")
|
||||
);
|
||||
|
||||
function generateHeader($self)
|
||||
{
|
||||
global $title;
|
||||
|
||||
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
|
||||
echo "<?xml-stylesheet href=\"http://freeglut.sourceforge.net/freeglut-style.css\" type=\"text/css\"?>\n";
|
||||
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";
|
||||
|
||||
?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="stylesheet" type="text/css" href="http://freeglut.sourceforge.net/freeglut-style.css" />
|
||||
<title><? echo $title ?></title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
generateSideBar($self);
|
||||
}
|
||||
|
||||
function generateFooter()
|
||||
{
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
|
||||
function printMenuItem($item, $current_page)
|
||||
{
|
||||
if ($item == 1)
|
||||
echo "\t<br/>\n";
|
||||
else if ($current_page == $item["page"])
|
||||
echo "\t<div class=\"navbar-item\"><i>$item[name]</i></div>\n";
|
||||
else
|
||||
echo "\t<div class=\"navbar-item\"><a class=\"navbar-item\" href=\"$item[page]\">$item[name]</a></div>\n";
|
||||
}
|
||||
|
||||
function generateSideBar($current_page)
|
||||
{
|
||||
global $sidebarentries;
|
||||
|
||||
# Print out the logo and title
|
||||
?>
|
||||
<div class="navbar-left">
|
||||
<span class="navbar-header"><a href="/"><img src="/images/freeglut_logo.png" alt="freeglut logo" style="border: 0;" /></a></span><br/>
|
||||
<span class="navbar-smalltext">The Free OpenGL Utility Toolkit</span><br/><br/>
|
||||
<?php
|
||||
# Print out each sidebar entry one by one...
|
||||
reset($sidebarentries);
|
||||
while (next($sidebarentries))
|
||||
printMenuItem(current($sidebarentries), $current_page);
|
||||
|
||||
# This allows a user to view our PHP source... it's in SVN anyway, and why not spread the love of
|
||||
# slick web page design? ;)
|
||||
$svn_location = "http://freeglut.svn.sourceforge.net/viewvc/freeglut/trunk/freeglut/web-src$current_page?view=markup";
|
||||
|
||||
# Print the SourceForge logo button and the "View source" link
|
||||
?>
|
||||
<br/>
|
||||
<span class="navbar-header">
|
||||
<a href="http://www.opengl.org/">
|
||||
<img src="/images/opengl.png" alt="OpenGL.org" height="31" width="88" style="border: 0;"/></a>
|
||||
</span>
|
||||
<span class="navbar-header">
|
||||
<a href="http://sourceforge.net/">
|
||||
<img src="http://sourceforge.net/sflogo.php?group_id=1032" width="88" height="31" alt="SourceForge" style="border: 0;" /></a>
|
||||
</span>
|
||||
<span class="navbar-header">
|
||||
<a href="http://validator.w3.org/check/referer">
|
||||
<img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" style="border: 0;"/></a>
|
||||
</span>
|
||||
<br/><br/>
|
||||
<span class="navbar-smalltext" style="font-style: normal;">
|
||||
<? echo "\t<a href=\"$svn_location\">View PHP Source</a>"; ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
function setPageTitle($title_inc)
|
||||
{
|
||||
global $site_title, $title;
|
||||
$title = $site_title . " :: " . $title_inc;
|
||||
}
|
||||
|
||||
?>
|
@ -1,17 +0,0 @@
|
||||
<?php
|
||||
# freeglut Web Page
|
||||
# This block ensures that template.php is always hit, no matter what subdirectory
|
||||
$slashes=substr_count ( $_SERVER['PHP_SELF'], "/");
|
||||
$require_target="";
|
||||
for (;$slashes>1; $slashes--) { $require_target .= "../"; }
|
||||
$require_target .= "template.php";
|
||||
require($require_target);
|
||||
|
||||
# Now set the title of the page:
|
||||
setPageTitle("Information for Users");
|
||||
|
||||
# Make the header.
|
||||
generateHeader($_SERVER['PHP_SELF']);
|
||||
?>
|
||||
|
||||
<?php generateFooter(); ?>
|
@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
user=$1
|
||||
else
|
||||
# read the username out of .sfuser
|
||||
if [ -f .sfuser ]; then
|
||||
user=$(cat .sfuser)
|
||||
else
|
||||
user=$USER
|
||||
fi
|
||||
|
||||
if [ -z "$user" ]; then
|
||||
echo "please pass your sourceforge username as argument, or create a .sfuser file" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "connecting as user: $user ..."
|
||||
rsync -avP -e ssh --exclude='.sfuser' --exclude '*.swp' \
|
||||
* $user@web.sourceforge.net:/home/project-web/freeglut/htdocs/
|
@ -132,7 +132,10 @@
|
||||
/* Note: FREEGLUT_GLES is only used to cleanly bootstrap headers
|
||||
inclusion here; use GLES constants directly
|
||||
(e.g. GL_ES_VERSION_2_0) for all other needs */
|
||||
#ifdef FREEGLUT_GLES
|
||||
#ifdef __VITA__
|
||||
# include <EGL/egl.h>
|
||||
# include <GLES2/gl2.h>
|
||||
#elif FREEGLUT_GLES
|
||||
# include <EGL/egl.h>
|
||||
# include <GLES/gl.h>
|
||||
# include <GLES2/gl2.h>
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |