sdl-2 Questions
3
Looking for the proper way to resize an SDL2 window/canvas that is coming from Emscripten.
Currently I'm adding an event listener on the JS 'resize' event and sending the Canvas parent's client wid...
Wilbourn asked 21/9, 2020 at 6:40
4
Solved
I have installed SDL2 using Homebrew but now I don't know how to make sure Xcode can use it! I imported the created library and added it to the build phases tab of my project. But when I try to bui...
1
I am trying to create an SDL window which is by itself fully transparent, but when an image is rendered onto it, the image is fully opaque and the alpha channel of the image is conserved (so the tr...
Curson asked 19/5, 2021 at 19:46
3
Solved
Hi I would like to know if it is possible to simply take a screenshot with SDL2.
I tried SDL_GetWindowSurface but I get an error saying:
No hardware accelerated renderers available.
I took the...
Crissie asked 11/3, 2014 at 3:38
3
I use the following structure to get new width and height of the resized SDL window:
if (sdl_set->GetMainEvent()->type == SDL_WINDOWEVENT)
{
if (sdl_set->GetMainEvent()->window.event =...
20
Solved
Could someone explain what the
__imp__fprintf
and
__imp____iob_func
unresolved external means?
Because I get these errors when I'm trying to compile:
1>SDL2main.lib(SDL_windows_main...
Tribunal asked 23/5, 2015 at 12:58
6
Solved
So I was reading this article which contains 'Tips and Advice for Multithreaded Programming in SDL' - https://vilimpoc.org/research/portmonitorg/sdl-tips-and-tricks.html
It talks about SDL_PollEve...
2
Solved
I have a game written using SDL2, and the SDL2 renderer (hardware accelerated) for drawing. Is there a trick to draw filled quads or triangles?
At the moment I'm filling them by just drawing lots o...
5
Solved
I'm using SDL2.
The only way I can find to draw a shape is with the line, rect and pixel functions, as explained here.
Apart from using trig or the "equation of a circle", how could I dra...
Cosmonaut asked 12/7, 2016 at 16:11
5
Solved
I can create a SDL2 window but I don't know how to change background color of this window.
My code:
#include "SDL.h"
SDL_Window *window;
void main()
{
window = SDL_CreateWindow("TEST", SDL_WIN...
6
Solved
I'm looking for the simplest way to compile a c++ program using SDL2 and SDL_image with cmake.
Here is my best attempt, after hours of searching:
CMakeLists.txt
project(shooter-cmake2)
cmake_minim...
4
Solved
I'm am learning SDL2, but I am also using the imgui library that is using OpenGL calls. From what I read on various blogs online, I can't easily mix SDL2 renderer and OpenGL calls; I either use one...
2
Solved
To the best of my knowledge, this isn't a duplicate of an existing question. This question is specifically about Visual Studio's auto-linking SDL2 libraries.
I've installed SDL2 (x64-windows varian...
Linguistician asked 26/9, 2020 at 15:4
7
Solved
I'm trying to use kivy on my Python 2.7 project (in a PyCharm - Windows 10 environment), but I get the following error.
If someone can help me ? Thanks !
PS : I tried many times uninstalling/rein...
Cephalothorax asked 24/3, 2018 at 15:57
1
I'm trying to write a retro-computer emulator in C (with SDL2 for graphics and sound) that has memory mapped graphics.
This will be a 16-bit WORD machine, with each RAM location holding 16-bits. T...
7
Solved
I'm using an SDL_Window and SDL_Renderer.
Is it possible to use SDL_TTF with SDL_Render/SDL_Window? If so, how?
1
I have a project using GTK+ 3 only for certain tasks, for example to provide file open dialog with gtk_file_chooser_dialog_new. I have to set parent to NULL as I have no "main" GTK window. However ...
4
Solved
I have problems deactivating fullscreen mode with my program. Entering fullscreen happens correctly, but trying to go back to windowed mode doesn't work, the only effect is that the cursor gets sho...
Toilette asked 3/6, 2015 at 19:36
6
Solved
Whenever I try to load a PNG using SDL_Image's IMG_Load function it gives the error Failed loading libpng16-16.dll:. I have all the right dll's in the right path and I can use other parts of SDL_Im...
1
Solved
I am using SDL2 for the first time, and when I try to create a window, it's not displaying. The only sight of the window is an icon spawning in my dock (Image of the icon, SDLTest.out is the name o...
7
Solved
Python: 3.6.4
OS: Windows 10
Kivy: 1.10.0
Kivy Installation Method
python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.dep...
2
I am trying to make a simple game using SDL2 and C++ on Xcode 11.2.1; however, my progress has been stopped by an error.
All it takes to encounter these errors is simply initializing SDL. Just cal...
3
Solved
Using just a given SDL_Window* and SDL_Renderer*, how can I create and save a screenshot in SDL 2.0?
1
Solved
I am trying to import sdl2 package from https://github.com/veandco/go-sdl2. I followed all the steps that appear on readme.md for Windows. Installing mingw64 and do on cmd:
go get -v github.com/vea...
4
Solved
Just made the jump from SDL1.2 to SDL2, been converting my code but couldn't figure out how to resize the window. Here's the code I have now:
SDL_DestroyWindow(Window);
Window = SDL_CreateWindow("...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.