More GLES documentation

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1247 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-04-19 21:12:32 +00:00
parent 716701e477
commit 9cd6041e4c

View File

@ -38,6 +38,7 @@ cd /usr/src/freeglut-3.0.0/
mkdir native-gles2/ && cd native-gles2/
cmake \
-DCMAKE_INSTALL_PREFIX=/tmp/freeglut-native-gles2 \
-D CMAKE_BUILD_TYPE=Debug \
-DFREEGLUT_GLES2=ON \
-DFREEGLUT_BUILD_DEMOS=NO \
..
@ -45,6 +46,21 @@ make
make install
</pre>
<p>For GLES1:</p>
<pre>
cd /usr/src/freeglut-3.0.0/
mkdir native-gles1/ && cd native-gles1/
cmake \
-DCMAKE_INSTALL_PREFIX=/tmp/freeglut-native-gles1 \
-D CMAKE_BUILD_TYPE=Debug \
-DFREEGLUT_GLES1=ON \
-DFREEGLUT_BUILD_DEMOS=NO \
..
make
make install
</pre>
<a name="using"></a>
<h1>Using in your projects</h1>
@ -69,4 +85,7 @@ mkdir native-gles2/ && cd native-gles2/
PKG_CONFIG_PATH=/tmp/freeglut-native-gles2/share/pkgconfig/ cmake ..
</pre>
<p>See for instance <code>progs/test-shapes-gles1/</code> in the source distribution:
it is a standalone CMake app that uses FreeGLUT GLES1.</p>
<?php generateFooter(); ?>