Skip to main content

Questions tagged [sdl2]

SDL2 (Simple DirectMedia Layer 2) is designed to provide platform independent access to various common multimedia devices. It is the new, current and updated version of SDL and recommended for new projects over legacy SDL1.2

1 vote
1 answer
141 views

while I was trying to optimize SDL2 rendering phase as much as possible, I reached a wall. I tried to search on the internet but I could not find any solution. So, I need help. Let me explain the ...
Binary Series's user avatar
0 votes
0 answers
104 views

I have looked up ways to calculate DeltaTime in the past, but the 'solutions' seem to have my program be slightly jittery or not move things correctly. As far as I know, you would calculate it by ...
Moss's user avatar
  • 1
1 vote
0 answers
179 views

I’m a beginner developing a 2D game in SDL2 using C with a visual style that uses crisp high resolution graphics (like geometry dash and Hollow Knight -- not pixel art). I want the game to scale ...
NewCoder's user avatar
0 votes
2 answers
159 views

I only know C, no other language. How do I use a linked list to store projectiles in sdl2? My bullet currently has an sdl_image, has been queried and has the following properties: ...
L1ghtkage CaptainL1ghtning's user avatar
0 votes
0 answers
45 views

I am a freshman cs major with an interest in game dev. I know next to nothing and am very new to this so please bare with me. TLDR; Should I use BSP for detection between moving and static objects as ...
L1ghtkage CaptainL1ghtning's user avatar
0 votes
1 answer
151 views

Whenever I create a project with SDL2, I always encounter the same issue: when I hold down a key (for example, W for upward movement), it moves on the first frame, doesn’t move on the second frame, ...
Alex Martínez's user avatar
0 votes
1 answer
115 views

When drawing transparent PNG data on to the renderer, pixel data of any previous drawing (layer beneath) is replaced with the renderer's drawing color (green). I have tried setting blend mode in the ...
AntumDeluge's user avatar
0 votes
0 answers
69 views

I am currently using a SDL_Texture *texture as a chunk in my world that is being Perlin noised onto to make terrain. Using a 2d array of these I tile the plane. But ...
Syntax Error12's user avatar
0 votes
0 answers
80 views

I want to render terrain efficently using perlin nosie and a lots of rects. Should I use rects or is there another way. Following is my implementation. I use rect size = 1 which is not really ...
Syntax Error12's user avatar
3 votes
2 answers
194 views

I recently bought a R36S retro handheld linux based game console. The system runs ArkOS which is a Ubuntu based OS. On boot, the system launches the program EmulatorStation, but it is possible to exit ...
Dov Grobgeld's user avatar
0 votes
1 answer
98 views

I am trying to create a Voxel Space Engine In SDL2 C++. However the tutorial I am following reads the X and Y pixels of the heightmap image. I can't find a way to do this. I am following this tutorial:...
Nabir14's user avatar
  • 59
0 votes
1 answer
145 views

I pulled my SDL2 game out of cold storage and am working to get it running again. I found a curious thing: graphics primitives based on SDL2_gfx and text based on SDL_ttf are displaying way too big, ...
Joymaker's user avatar
  • 121
0 votes
1 answer
214 views

(I apologize in advance for my awful English) I'm writing a personal UI library in C++ using SDL2, and when came the moment to implement icons, I struggled to find how to render them in a unique color....
Gkcrafting's user avatar
1 vote
1 answer
121 views

I'm making a GUI that can be controlled by a steering wheel. It need only run on Windows. It works as expected with exception of the fact that the first 90 degrees in either direction seems to be ...
Brian K's user avatar
  • 113
0 votes
1 answer
173 views

Currently, the way I render my frames is as follows. I have two arrays of pixels (in SDL_PIXELFORMAT_ABGR8888) called ...
Scene's user avatar
  • 123

15 30 50 per page
1
2 3 4 5
25