Most voted "sdl" questions
Simple Directmedia Layer is a free, cross-platform, open source multimedia library written in C that represents a simple interface for graphics, sound, and multi-platform input devices.
Learn more…18 questions
Sort by count of
-
2
votes1
answer306
viewsWhat is the difference and advantages of SDL and Unity3d
I wanted to know the main difference between SDL and Unity3d in terms of performance and ease of use and when one is more suitable than the other.
-
2
votes1
answer48
viewsWhy does the console even appear using a library to create a window?
I wanted to understand why the console also opens when a program is made using the SDL2 library. I am using codeblocks in windows 10. How do not appear the console and only appear the window…
-
1
votes1
answer189
viewsHow to create a file open dialog with the SDL library?
I’m making a very simple audio player in C (on Ubuntu) for a college job, and I’m using the SDL library to create windows (graphical interface) along with the Sdl_mixer to play the audio. The…
-
1
votes1
answer90
viewsSDL - C - How to check if the mouse pointer is on an image?
Hello, I’m starting a learning about the SDL C graphical interface and I plan to make a menu. In this menu there will be options and when the user hovers over some, it will change color (yellow to…
-
1
votes0
answers176
viewsOpengl code encapsulation in C++ classes
I am currently starting a SDL / Opengl-based project, using the code as a basis of that Article. At the moment, I’m trying to find the best way to encapsulate the example’s Opengl code. My main…
-
1
votes0
answers58
viewsHow to link to SDL2 statically
With a simple sdl project, it just shows an empty window. I’m using the following Cmake (in Clion) : cmake_minimum_required(VERSION 3.3) project(AprendendoCpp) set(CMAKE_CXX_FLAGS…
-
1
votes0
answers47
viewsSDL2/C++ - Loop at a specific frequency
I have a project of an emulator CHIP8 that was already stopped a long time ago so I started working on it again today, I can already extract and draw sprites and I’ve implemented almost all the…
-
1
votes0
answers46
viewsProblem Including SDL in Codeblocks
I’m downloading the mingw SDL from this website. I unzipped the zipped file and copied those folders: bin, include, lib And I taped them all together on the way to Codeblock C: Program Files (x86)…
-
0
votes1
answer675
viewsHow to Collide 2D from C++ Tiles
Hello. I wonder how I can get collision of Tiles in C++. I am using an engine made by my friend, even so, I would like to know how to do. I’m using SDL 2! Grateful from now on Thiago…
-
0
votes0
answers130
viewsError while compiling in DEV-C++(SDL)
I did all the procedure to use SDL2, but when I compile the following error happens [Error]SDL/SDL.h: No such file or directory This is the content of the line where the error occurs…
-
0
votes1
answer1507
viewsExecutable created by Codeblocks opens and closes alone
I have a problem with my Codeblocks program. When I compile and run the program, Codeblocks creates a executable in the Debug folder that is inside the bin folder, located in the same folder where…
-
0
votes1
answer86
viewsTexture error in opengl
I’m trying to do some things in C using SDL and opengl, and at the time of drawing textures I can easily if you want only 1 object with texture but when trying to put a texture in the background and…
-
0
votes1
answer113
viewsHow to include Sdl_image lib for my Solution in Visual Studio 2015?
I’m trying to create a C++ game with SDL2 for Windows Phone 8.1 I follow this tutorial https://hg.libsdl.org/SDL/raw-file/tip/docs/README-winrt.md and a game with only the SDL2/Winrt project (no SDL…
-
0
votes1
answer260
viewsHow to use sdl in Clion
I’m fairly new in c++ , and don’t know how to use sdl in Clion. I’ve tried several ways, it’s like this currently: Cmakelists: project(cppsdl) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11…
-
0
votes0
answers134
viewsHow to detect the collision with the SDL2 floor
I’m developing a game for learning using C++ with SDL2, and I want to check when my character touches the ground. For this I created the class "Collider", with the following function (adapted): bool…
-
0
votes1
answer129
viewsHow to play queued audio on SDL Mixer and C++?
I have 4 different audios; I want to play them in a row, press a button and tap 1; when it finishes playing it automatically it starts playing 2, then 3 and then 4.... you can do this in the SDL…
-
0
votes1
answer34
viewsSDL is always generating transparent screen. c++
created and compiled a program in SDL, I do not know the reason, but it always returns a transparent screen, when the expected is a white screen. I’m using the following code: #include <SDL.h>…
-
-1
votes1
answer29
viewsHow to plot graphics and images . png in the same window with openGL and SDL
I have done some search, in manuals and such on google however I would like to know how to adapt my code below to plot a chart (line for example) along with a file image .png. I do not know where I…