diff --git a/freeglut/web-src/docs/gles.php b/freeglut/web-src/docs/gles.php index 4bf05f6..a8d2e49 100644 --- a/freeglut/web-src/docs/gles.php +++ b/freeglut/web-src/docs/gles.php @@ -22,10 +22,15 @@ generateHeader($_SERVER['PHP_SELF']);
  • Android (see dedicated page)
  • BlackBerry 10/BlackBerry PlayBook
  • Unix X11 with Mesa EGL
  • +
  • TODO: Raspberry PI: Mesa EGL doesn't work due to X11's fbdev limitation (no GL); + it needs to use bcm_host + from libraspeberrypi-dev which will shortcut X11 - see [#71]
  • FreeGLUT ES is provided as a separate library, because OpenGL ES has a distinct, -incompatible library for each version (e.g. -lGLESv1_CM and -lGLESv2).

    + incompatible library for each version (e.g. -lGLESv1_CM and -lGLESv2).
    + TODO: it seems it's possible to link both without incompatibility, so we need to remove + double-compilation.

    When compiled for OpenGL ES 2.0, it is possible to use OpenGL ES 3.0 and higher if the device or driver supports it by calling glutInitContextVersion(3.0, 0.0) before creating a window.

    @@ -37,6 +42,8 @@ driver supports it by calling glutInitContextVersion(3.0, 0.0) befo

    Here's how to compile FreeGLUT for GLES2:

    +

    First, check README.cmake to install the dependencies for your system.

    +
     aptitude install libgles2-mesa-dev
     cd /usr/src/freeglut-3.0.0/
    @@ -91,7 +98,13 @@ mkdir native-gles2/ && cd native-gles2/
     PKG_CONFIG_PATH=/tmp/freeglut-native-gles2/share/pkgconfig/ cmake ..
     
    -

    See for instance progs/test-shapes-gles1/ in the source distribution: -it is a standalone CMake app that uses FreeGLUT GLES1.

    +

    See for instance:

    +