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.
Questions tagged [sdl]
27 questions
24
votes
2 answers
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 remains black until you reboot.
This is in…
finnw
- 5,790
- 3
- 34
- 42
9
votes
1 answer
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 screen of my TV properly (I am using the composite…
Alessandro Cosentino
- 891
- 1
- 8
- 19
6
votes
1 answer
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 I have tried so far was changing my bits per pixel…
ScrollerBlaster
- 489
- 1
- 5
- 12
5
votes
2 answers
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 manually compiled from source should support OpenGL-ES2…
Grumbel
- 191
- 1
- 8
5
votes
1 answer
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
#include
#include
int…
fouric
- 1,809
- 4
- 18
- 26
4
votes
1 answer
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 using hardware acceleration? i.e. How do you ensure…
Hop
- 71
- 1
- 4
3
votes
1 answer
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 information on how to do this?
P.S. I can see that I can…
sparkymat
- 131
- 1
- 1
- 4
3
votes
1 answer
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 and then load fastdosbox, it will work, but it's…
Synaps3
- 131
- 2
2
votes
2 answers
How can I invert the mouse Y axis in Minecraft Pi - followup
Apparently as someone just joining the community, I cannot ask for clarification on answers. There is no way to message a user, so I'm posting a new question relating to the following post.
How can I invert the mouse Y axis in Minecraft PI
The…
Stettin
- 131
- 4
2
votes
1 answer
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
#include
#include…
TheBuzzSaw
- 123
- 6
2
votes
1 answer
Running SDL 1.2 based code on buster without X
Up to and including Raspbian Stretch, I could use a hacked SDL library called SDL12-kms-dispmanx by a developer called vanfanel to run SDL 1.2 code from the console without X. (See here: https://github.com/vanfanel/SDL12-kms-dispmanx)
Now, with…
TeaRex
- 23
- 2
1
vote
3 answers
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 it take to compile code that uses the…
user8709
1
vote
1 answer
Running SDL app via RealVNC with Direct Capture enabled does not accept Keyboard input
I am trying to run and SDL hardware-accelerated app, PICO,-8 over VNC, and thanks to this community I am making progress!
One solution is to use RealVNC with the experimental DirectCapture feature enabled. When I do this, PICO-8 launches, but the…
J Mac
- 133
- 5
1
vote
1 answer
Which remote access method allows me to access an SDL-based application
I am trying to run an SDL-based application, PICO-8, on a headless Raspberry Pi 3. When I run it locally, everything works fine as it should. When I try to run it via either RealVNC or SSH X11 Forwarding, nothing appears.
This SDL Application is…
J Mac
- 133
- 5
1
vote
0 answers
Emulator launches behind SDL front-end
I'm trying to add RetroFE (using SDL2) to RetroPie as an alternative to EmulationStation.
Unfortunately the emulators launch behind the front-end. I've tried hiding the window, minimizing it, etc., but I get the feeling that since this is running…
Pieter Hulshoff
- 11
- 1