I am trying to get started using SDL to create a portable and pretty front end that can run under X, or directly from the terminal (hopefully on a rasberry pi at some point) - at the moment I'm on a laptop with the latest Ubuntu on it.
I am having trouble getting an image displayed properly on the terminal - it comes out as ascii art. I think this is a problem with my system configuration rather than the example program I have, as it works fine when run under X.
So far all I think I know is that SDL should be using the fbcon video driver, but is instead using aalib. I gather that SDL checks to see if framebuffer is available and uses it if it is - and it is there - at least according to the output of
> fbset -i
mode "1024x768"
geometry 1024 768 1024 768 32
timings 0 0 0 0 0 0 0
accel true
rgba 8/16,8/8,8/0,0/0
endmode
Make sure that your SDL install is built with framebuffer support (--enable-video-fbcon
and/or --enable-video-directfb
) and that the SDL_VIDEODRIVER
environment variable is set to fbcon
or directfb
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With