SDL stands for Simple DirectMedia Layer. It is a cross-platform media library written in C, that allows users to simply access grapics, sound, and other input devices.

learn more… | top users | synonyms

0
votes
0answers
9 views

Video presentation on RPi3 with SDL2

I had successfully followed the LazyFoo tutorials to basic shape/image rendering and am getting over 30 FPS on my RPi3. My next stage is to get video file rendering working. I had used the following ...
0
votes
1answer
94 views

Has anyone managed to get SDL 2/3 working, without X, in Raspbian?

I have Raspbian Jessie running on my Pi2. I am currently booting into LXDE. I want to disable X and run my SDL code directly on the framebuffer. Can someone point me to where I can find more ...
3
votes
1answer
90 views

How do I set the input focus to my SDL2 app?

I have a pretty simple program. I'm just trying to acknowledge keyboard/mouse events, but I'm getting no log output (inside my SDL_PollEvent loop). I'm running just basic Raspian (no X). #include ...
0
votes
0answers
119 views

No available video device SDL2

I'm trying to get a simple window with OpenGL up with C (CodeBlocks IDE). I'm using SDL2 as a window manager. However, when I start it up SDL_Init fails and SDL_GetError "No available video device". ...
0
votes
0answers
90 views

Troubles with SDL and /dev/fb1

So I have a raspberry pi with Jesse and am trying to get my 2.2 TFT from adafruit working with SDL. I can play videos on, display the console, etc using /dev/fb1 so I know its wired up ok and the ...
4
votes
1answer
391 views

SDL2 performance

Is it possible to use SDL2 with 2D hardware accelerated rendering on Raspberry Pi? If 2D hardware accelerated rendering is possible on the device, how do you check to see that your application is ...
1
vote
0answers
46 views

Keyboard not working after running SDL2 based program [duplicate]

I'm now developing a mini game, using SDL. When I use SDL1.2, the keyboard input event signal is well-caught. However, if I use SDL2.0, the keyboard input event signal doesn't seem to be caught. ...
0
votes
0answers
130 views

Ntrig touchscreen and pygame

I have a 10" touchscreen purchased from Chalk-elec. This touchscreen reports as N-trig duosense (output from dmesg): [ 4.483271] usb 1-1.3.3: Manufacturer: N-trig [ 5.584474] ntrig ...
3
votes
1answer
1k views

How to use OpenGL via SDL2?

I am looking for a "Hello World" type example that makes use of OpenGL-ES2 via SDL2. So far I could gather: SDL2 that ships with Raspbian does not support OpenGL-ES2 out of the box SDL-2.0.3 ...
3
votes
1answer
351 views

Output SDL to TFT screen from console

I'm trying to make a SDL program (fastdosbox) output to an adafruit TFT screen. The screen is fb1. In the console I tried typing SDL_FBDEV=/dev/fb1 but it still outputs to the HDMI screen. If I startx ...
4
votes
1answer
925 views

Why won't SDL 2.0 give me an OpenGL ES 2.0 window?

I have a small SDL 2.0 program (detailed below) that refuses to give me a window, complaining about not being able to initialize its OpenGL ES library. Program: #include "bcm_host.h" #include ...
0
votes
3answers
2k views

SDL 1.2 for use with C++ on Raspbian?

Can I get the SDL libraries on Raspbian? I don't actually have a Raspberry Pi, but before I get one I want to know if I can. If I can then: Does it have all the features of SDL 1.2? How long does ...
4
votes
1answer
5k views

SDL: couldn't find matching glx visual

I have compiled my SDL game on the PI. I used apt to install the SDL 1.2 dev package. When I call SDL_SetVideoMode, it fails and this is the SDL error string. couldn't find matching glx visual What ...
7
votes
1answer
2k views

How can I run Stella (Atari emulator) on the Raspberry Pi?

I am trying to run Stella, the Atari emulator that is in the debian repository. If I run it from X, it's very slow and I am not able to use OpenGL acceleration. Plus, the full screen doesn't fit the ...
20
votes
2answers
1k views

Console unusable after running SDL app

When certain SDL-based programs (e.g. prboom, dosbox) are run from the console (not X) and terminate abruptly for some reason (e.g. killed or segfaults), the screen locks up; It just goes black, and ...