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:
parent
716701e477
commit
9cd6041e4c
@ -38,6 +38,7 @@ cd /usr/src/freeglut-3.0.0/
|
|||||||
mkdir native-gles2/ && cd native-gles2/
|
mkdir native-gles2/ && cd native-gles2/
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX=/tmp/freeglut-native-gles2 \
|
-DCMAKE_INSTALL_PREFIX=/tmp/freeglut-native-gles2 \
|
||||||
|
-D CMAKE_BUILD_TYPE=Debug \
|
||||||
-DFREEGLUT_GLES2=ON \
|
-DFREEGLUT_GLES2=ON \
|
||||||
-DFREEGLUT_BUILD_DEMOS=NO \
|
-DFREEGLUT_BUILD_DEMOS=NO \
|
||||||
..
|
..
|
||||||
@ -45,6 +46,21 @@ make
|
|||||||
make install
|
make install
|
||||||
</pre>
|
</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>
|
<a name="using"></a>
|
||||||
<h1>Using in your projects</h1>
|
<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 ..
|
PKG_CONFIG_PATH=/tmp/freeglut-native-gles2/share/pkgconfig/ cmake ..
|
||||||
</pre>
|
</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(); ?>
|
<?php generateFooter(); ?>
|
||||||
|
Reference in New Issue
Block a user