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']);
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).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.
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:
+