Skip to main content
-2 votes
0 answers
41 views

I am implementing ghost behavior in a Pac-Man clone, specifically the behavior when ghosts are inside the ghost house during the waiting phase. The issue is that ghosts inside the ghost house do not ...
Amir Reza Sa's user avatar
1 vote
1 answer
149 views

I’m currently working on a mouse injector for emulators project I’ve forked on github. The issue: When after some seconds the application is minimized I get sluggish gamepad inputs and input delay. ...
Razgriz's user avatar
  • 11
0 votes
1 answer
92 views

In the SDL_Surface structure, is there a way to calculate the bounds of the pixels Member? I need a quicker way of doing this, so my code doesn't catch seg-faults while running. On my Linux Laptop, ...
SpedTech XR's user avatar
0 votes
0 answers
90 views

I am using an i686 system, with the compiler mingw G++. I can run code that creates a GPU device and attaches it to a window fine on that machine. However, when I attempt to run it on my i686 windows ...
Jasper Stocks's user avatar
0 votes
1 answer
98 views

I'm trying to create a shared texture between Vulkan and OpenGL, and as I understand the process, it's split in two parts: exporting the memory during allocation and then getting a Windows HANDLE to ...
Blindy's user avatar
  • 68k
2 votes
1 answer
266 views

I'm trying to modify a texture pixel by pixel using a framebuffer, In my code I'm trying to fill the texture with white pixels, nothing seems to work. #include <iostream> #include <SDL3/SDL....
Ayoub Meziane's user avatar
0 votes
1 answer
230 views

I am trying to learn imgui by first create a project using its library. But, first I wanted to run one of the examples found in the github repository. I am not using an IDE, only my mac terminal. ...
Charles Florestal's user avatar
-1 votes
1 answer
169 views

Whenever I go to debug and run my game, the memory just climbs, As you can see, I wipe the memory after I'm done with it (so I thought) Any tips on managing memory in this state? (using Visual Studio ...
user avatar
1 vote
0 answers
283 views

I'm using NixOS and trying to learn SDL, yesterday I got a code example to build and work but today it stopped working, I tried rebuilding everything in a different directory with no success. I'm ...
veeloth's user avatar
  • 86
1 vote
0 answers
106 views

I wrote a basic program to draw a line across two corners of the screen with SDL2: // Linux build: // gcc test.c -lSDL2 -lSDL2main -o test // // Windows build (Linux VM using MinGW): // x86_64-w64-...
CodeOfLines's user avatar
0 votes
0 answers
163 views

I'm automating the Android build process for an SDL3-based project without using Gradle. While SDL provides an Android project template, it doesn't fully cover my case, so I'm customizing it to ...
Bruno Perković's user avatar
2 votes
1 answer
112 views

I came across a behavior in SDL3 that concerns me. In SDL3, the standard position of the origin of the screen's coordinate system is in the upper left corner. I tried rendering a simple 100x100 ...
Moritz Holzwarth's user avatar
0 votes
0 answers
146 views

I'm building an OpenGL 4.6 application using SDL3 and GLAD, compiled with g++: // g++ -Wall -Ofast main.cpp include/glad/glad.c -Iinclude/SDL3 -Linclude/SDL3 -lSDL3 -lopengl32 -o build/program #define ...
HannesScript's user avatar
13 votes
1 answer
1k views

When I try to execute this SDL3 program: // g++ -Wall -Ofast main.cpp -Iinclude -Iinclude/SDL3 -Linclude/SDL3 -lSDL3 -o build/program #define SDL_MAIN_HANDLED #include <iostream> #include <...
HannesScript's user avatar
2 votes
1 answer
247 views

I've been writing my own game engine using SDL3 and DX11. I've been able to get the HWND and set it to swapChainDesc.OutputWindow and set the color to pink: #define SDL_MAIN_USE_CALLBACKS 1 #include &...
Ismail's user avatar
  • 89

15 30 50 per page
1
2 3 4 5
333