Editing OpenGL-ES

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 80: Line 80:
The N900 ships with SDL 1.2. You can use that and a external library, [[User:Javispedro/SDL-GLES|SDL-GLES]] (available in extras), to create simple OpenGL ES 1.1 and 2.0 applications.
The N900 ships with SDL 1.2. You can use that and a external library, [[User:Javispedro/SDL-GLES|SDL-GLES]] (available in extras), to create simple OpenGL ES 1.1 and 2.0 applications.
-
 
-
[http://maemo.org/packages/view/nehegles/ NeHeGLES] is a port of several of the famous [http://nehe.gamedev.net/ NeHe OpenGL lessons] to Maemo5/SDL-GLES.
 
=== SDL 1.3 ===
=== SDL 1.3 ===
Line 97: Line 95:
=== Qt ===
=== Qt ===
-
You can use [[Qt-Maemo|Qt]] with OpenGL ES 2.x on the N900.
+
You can use Qt with OpenGL ES 2.x on the Nokia N900.  
=== Clutter ===
=== Clutter ===
-
libclutter supports OpenGL ES 2.x and OpenGL ES 1.1. It is oriented towards toolkits and applications with user interface elements.
+
libclutter supports OpenGL ES 2.x. It is oriented towards toolkits and applications with user interface elements.
=== Xlib (X11) ===
=== Xlib (X11) ===
Line 135: Line 133:
Edit <code>hellogl_es2.pro</code> and add:
Edit <code>hellogl_es2.pro</code> and add:
-
<pre>QT += opengl</pre>
+
<pre>LIBS += -lGLESv2 -lQtOpenGL</pre>
Then run:<pre>qmake -project
Then run:<pre>qmake -project
Line 156: Line 154:
There is a [[SimpleGL example | simple Xlib example]] in a separate article.
There is a [[SimpleGL example | simple Xlib example]] in a separate article.
-
 
-
=== SDL-GLES Example ===
 
-
 
-
The NeHeGLES examples are available from extras-devel. Within armel-scratchbox, a simple
 
-
 
-
<pre>fakeroot apt-get build-dep nehegles</pre>
 
-
 
-
will install all the necessary libraries. An additional
 
-
 
-
<pre>fakeroot apt-get source nehegles</pre>
 
-
 
-
will then install the sourcecode of the nehegles lessons. A "make" in the nehegles root directory builds all the included lessons as well as the gui. Individual lessons can be recompiled by a simple "make" in their respective directories.
 
-
 
-
=== Python example ===
 
-
On [http://orgetik.de/wp/wordpress/?tag=opengl-n900&lang=en] you can find xlib_wrapper.py and opengltest.py (port of SimpleGL example).
 
== Notes ==
== Notes ==
Line 201: Line 184:
* [http://www.amazon.com/OpenGL%20ES-2-0-Programming-Guide/dp/0321502795/ref=sr_1_1?ie=UTF8&s=books&qid=1235944783&sr=1-1 OpenGL ES 2.0 programming guide] &ndash; This 'Gold Book' is hardly in the same league as the above book, or the original 'Red Book' - being aimed at folk who already know their OpenGL lingo. It dives into laborious detail as if trying to spew as much of the ES 2.0 spec onto the page as possible. It assumes a Windows audience and the AMD simulator. You may be better off looking at the PowerVR SDK tutorial code than reading this book, then coming back to it for reference and further code examples.
* [http://www.amazon.com/OpenGL%20ES-2-0-Programming-Guide/dp/0321502795/ref=sr_1_1?ie=UTF8&s=books&qid=1235944783&sr=1-1 OpenGL ES 2.0 programming guide] &ndash; This 'Gold Book' is hardly in the same league as the above book, or the original 'Red Book' - being aimed at folk who already know their OpenGL lingo. It dives into laborious detail as if trying to spew as much of the ES 2.0 spec onto the page as possible. It assumes a Windows audience and the AMD simulator. You may be better off looking at the PowerVR SDK tutorial code than reading this book, then coming back to it for reference and further code examples.
 +
=== Imagination Technologies SDK ===
 +
 +
* [http://www.imgtec.com/powervr/insider/sdk/KhronosOpenGLES2xSGX.asp OpenGL ES SDK]
[[Category:Development]]
[[Category:Development]]
-
[[Category:N900]]
 

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)