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 203: Line 186:
[[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)