Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sdl]

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.

0
votes
0answers
11 views

ffplay and 7'' touchscreen

I'm trying to use ffplay with my RPi3B+ running the latest Rasbian Lite but it returns the following error: Could not initialize SDL - No available video device (Did you set the DISPLAY ...
0
votes
1answer
91 views

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 ...
0
votes
1answer
306 views

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 ...
0
votes
1answer
343 views

Slow pixel drawing with SDL2 & experimental OpenGL driver

The code bellow just polling mouse events and draw lines between the previous and last mouse coordinates in case of left mouse button pressed down, nothing special and its using only fast integer ...
1
vote
0answers
100 views

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., ...
0
votes
1answer
127 views

Retropie SDL Key not recognized warning

I have a RPi 3B with Retropie 4.1 all updated to the latest binaries. I had installed minecraft from the RetroPie-Setup and since then I am getting SDL warnings logged into the console that read "The ...
0
votes
1answer
1k views

Rendering with SDL2

I migrated a small SDL2 project to my raspberry pi and the performance was just awful. On frames with less textures to render, it runs beyond 60fps. Otherwise, the CPU skyrockets to >90% and the ...
0
votes
1answer
58 views

Mobile Development On A Pi

I've been using a raspberry pi for two years for coding ( mostly in c++, using SDL2 ). Now feeling I have a sufficient grasp of this library, I would like to try out it's mobile utilities to get stuff ...
1
vote
1answer
1k 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 ...
2
votes
1answer
8k 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
773 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 <...
4
votes
1answer
2k 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
61 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. ...
4
votes
1answer
3k 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 manually ...
3
votes
1answer
980 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 ...
5
votes
1answer
3k 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 <...
1
vote
3answers
3k 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
7k 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
3k 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 ...
21
votes
3answers
2k 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 ...