Libsdl Confusion


chris_c

Member
Joined
Jun 25, 2010
Messages
393
Age
56
I notice from here
http://hg.libsdl.org/SDL/file/67acc9ab60ff/src/video/SDL_video.c
and other places in sdl's source that there are specific code to handle the pandora including opening a GLES context as if you were opening a GL one as you would normally with sdl

However...

if I use SDL_OPENGL (which seems to be handled in the source) I get failed loading libGL.so.1 from SDL_GetError when calling SDL_SetVideoMode

SDL_GL_LoadLibrary("/usr/lib/libGLES_CM.so"); simply gives Could not retrieve OpenGL functions

so then I pulled the code down and had a look and its different from the web view for example in SDL_video.c

99 #if SDL_VIDEO_DRIVER_PANDORA
100 &PND_bootstrap,
101 #endif
102 #if SDL_VIDEO_DRIVER_ANDROID
103 &Android_bootstrap,
104 #endif

are missing :-o

so I assume web hg view is showing sdl 1.3? and in fact there is actually no gles support in sdl at the moment? but there will be in 1.3?
 
chris_c said:
so I assume web hg view is showing sdl 1.3? and in fact there is actually no gles support in sdl at the moment? but there will be in 1.3?
1.2 didnt have gles support. and 1.3 will.
This might interrest you too : http://maemo.org/packages/source/view/fremantle_extras-devel_free_source/sdlgles/1.0.0/
 
Last edited by a moderator:
thanks sebt3 - but I'd rather wait till 1.3 hits the next firmware (code name XEVIOUS ?)....

I think I got a good handle on creating a GLES context and other tasks now...
 
Back
Top