First patch to use sdl+fbcon+mesa

this patch allows to use mesa with fbcon from within SDL
(=> opengl without X - but also without hardware acceleration)
it uses the offscreen mesa backend

i used mesa 5.0.1 (with only the osmesa backend enabled)

i did not yet write a test for the SDL configure script
=> you have to set your CFLAGS="-DHAVE_OSMESA=1"

with 1024x768x16 i did get 15fps on a 450Mhz AMD with testgl (included
in SDL)
all nehe-sdl tutorials worked

TODO:

  • SDL_GL_GetAttribute is not yet implemented
    BUGS:
    many
    (f.e. adic - http://adic.berlios.de - doesn’t work yet)

greetings karme
-------------- next part --------------
A non-text attachment was scrubbed…
Name: patch2
Type: application/x-java-vm
Size: 17989 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030429/82a277e9/attachment.bin

Jens Thiele wrote:

this patch allows to use mesa with fbcon from within SDL
(=> opengl without X - but also without hardware acceleration)
it uses the offscreen mesa backend

Hey, that’s great but what would take to have acceleration?

TIA

Adilson.