Why doesn't this work? (SDL/OpenGL-ES)

category: code [glöplog]
So... i've written some things in SDL/OpenGL before, and I want to port some of them to webOS, but i've never done OpenGL-ES before. I can't even get a stupid square on the screen, its just blank.

So, is there some reason why this shows nothing: (don't worry if you're not familiar with webOS, its just SDL & OpenGL-ES)


added on the 2011-09-01 08:36:57 by xeron xeron
xeron: missed you on irc last night. You're not setting the openGL version:


Maybe it defaults to ES 1, but if not glOrthoF and the likes won't work and you'll need a shader.
added on the 2011-09-01 09:37:30 by psonice psonice
You probably need to clear the depth buffer too
thanks! That was it.. Now I have one of my games running on the touchpad. Just need to add touch controls and put in my own protracker replay because sdl mixer for tp doesn't support it...
added on the 2011-09-06 00:52:16 by xeron xeron
and touchpad autocorrect thinks psonice should be phonics :)
added on the 2011-09-06 00:53:30 by xeron xeron
phonics is probably better than psonice anyway ;) (Although it does kind of sound like a lame musician..)

And, cool. More touchpad games \o/
added on the 2011-09-06 09:50:55 by psonice psonice
Commerce kills teh demoscenes!
added on the 2011-09-22 09:08:20 by kbi kbi
uhhh... Its not a demo, though...
added on the 2011-09-22 09:57:49 by xeron xeron
Maybe turn the preview images 90° right...
added on the 2011-09-22 10:22:26 by raer raer
The image orientation is nothing to do with me...
added on the 2011-09-22 10:41:53 by xeron xeron
Congrats :)
added on the 2011-09-22 10:53:17 by psonice psonice

Downloaded it already :)
added on the 2011-09-22 11:05:35 by Spenot Spenot