From c4d5ab086d829a435de7f5f70ed3131864b0e5f1 Mon Sep 17 00:00:00 2001
From: beuc
Date: Sat, 31 May 2014 10:38:44 +0000
Subject: [PATCH] Update GLES2 status and instructions
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1684 7f0cb862-5218-0410-a997-914c9d46530a
---
freeglut/web-src/docs/gles.php | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
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:
+
+ - OpenGL Wikibook's
+ tut04_transform-gles2
+ example: it uses a basic Makefile targetting freeglut-gles2
+ - progs/test-shapes-gles1/ in the source distribution:
+ it is a standalone CMake app that uses FreeGLUT GLES1.
+