User:Javispedro/SDL-GLES
From Maemo Wiki
Jump to navigationJump to search
You can use SDL 1.2 and a small addon I made, SDL-GLES, to ease development of OpenGL ES (1.1 and 2.0) applications in Maemo.
Page in progress
Get started
OpenGL ES 2.0
- In any of the SDK targets, download and install SDL and SDL-GLES packages.
fakeroot apt-get install libsdl-gles1.2-dev libsdl1.2-dev
- If you are in the FREMANTLE_ARMEL target, install libgles2-sgx-img-dev (which contains the OpenGL ES 2.0 required libraries and headers)
fakeroot apt-get install libgles2-sgx-img-dev
- But if you are in the FREMANTLE_X86 target, install libgles2-dev instead (which contains the OpenGL ES 2.0 emulation libraries).
fakeroot apt-get install libgles2-dev
- Now to get a simple skeleton for your app. Download gles2.c and put it in your working directory.
- Build gles2 with
gcc `sdl-config --cflags --libs` -o gles2 gles2.c -lSDL_gles
- Now run it. Ensure the SDK interface is up (this is out of the scope for this little tutorial).
./gles2
In detail
Questions & Answers
Feel free to edit here.