# Game Development

**URL:** https://discourse.libsdl.org/c/game-development/7.md?page=1

[Latest](https://discourse.libsdl.org/latest.md) · [Categories](https://discourse.libsdl.org/categories.md)

**Page:** 2

---

## [Image jittering/glitching on simple pong game](https://discourse.libsdl.org/t/image-jittering-glitching-on-simple-pong-game/65426)

<div class="topic-metadata">

**Author:** [@WootWoot](https://discourse.libsdl.org/u/WootWoot)\
**Replies:** 6\
**Last updated:** [January 5, 2026, 9:47am UTC](https://discourse.libsdl.org/t/image-jittering-glitching-on-simple-pong-game/65426 "2026-01-05T09:47:48Z")

</div>

Hey all, I’ve been trying to learn SDL3 for some time but I am stuck on one seemingly simple problem. In my pong game, the ball is a 32x32 white pixelart square png, made and exported with aseprite. As the ball is moving…

---

## [Non-HDR OpenGL game with Windows Auto HDR, incorrect brightness after quitting on NVIDIA h/w](https://discourse.libsdl.org/t/non-hdr-opengl-game-with-windows-auto-hdr-incorrect-brightness-after-quitting-on-nvidia-h-w/65502)

<div class="topic-metadata">

**Author:** [@lethal\_guitar](https://discourse.libsdl.org/u/lethal_guitar)\
**Replies:** 0\
**Last updated:** [January 3, 2026, 8:56am UTC](https://discourse.libsdl.org/t/non-hdr-opengl-game-with-windows-auto-hdr-incorrect-brightness-after-quitting-on-nvidia-h-w/65502 "2026-01-03T08:56:27Z")

</div>

Hi everyone. I have a simple 2D pixel art game using SDL and OpenGL. I don’t support HDR, and don’t plan to as it doesn’t make much sense for this type of game. I’ve gotten a report from a user who says that when running…

---

## [Buttons im Feld darstellen und anklicken](https://discourse.libsdl.org/t/buttons-im-feld-darstellen-und-anklicken/65298)

<div class="topic-metadata">

**Author:** [@Patty1991](https://discourse.libsdl.org/u/Patty1991)\
**Replies:** 2\
**Last updated:** [December 22, 2025, 1:16pm UTC](https://discourse.libsdl.org/t/buttons-im-feld-darstellen-und-anklicken/65298 "2025-12-22T13:16:28Z")

</div>

Guten Tag Nach einer gefühlten Ewigkeit und ein bisschen spicken bei google und co ist es mir nun endlich gelungen, ein Feld (20x20) mit kleinen Buttons darzustellen welche man anklicken kann und sie wieder verschwind…

---

## [What I've Made With SDL3 ZEngine (Oneirium) Development](https://discourse.libsdl.org/t/what-ive-made-with-sdl3-zengine-oneirium-development/65206)

<div class="topic-metadata">

**Author:** [@Zeena](https://discourse.libsdl.org/u/Zeena)\
**Replies:** 4\
**Last updated:** [December 17, 2025, 3:32am UTC](https://discourse.libsdl.org/t/what-ive-made-with-sdl3-zengine-oneirium-development/65206 "2025-12-17T03:32:07Z")

</div>

ZEngine (Oneirium) Development ZEngine: Built a complete 2D game engine with SDL3 (SDL2→SDL3 migration). Horror metroidvania playtest just launched! Hey everyone! After a few years of development, I just released the…

---

## [Command line built into the engine — request for testing](https://discourse.libsdl.org/t/command-line-built-into-the-engine-request-for-testing/65213)

<div class="topic-metadata">

**Author:** [@flowCRANE](https://discourse.libsdl.org/u/flowCRANE)\
**Replies:** 0\
**Last updated:** [December 13, 2025, 11:39am UTC](https://discourse.libsdl.org/t/command-line-built-into-the-engine-request-for-testing/65213 "2025-12-13T11:39:04Z")

</div>

I have just finished working on implementing command line overlay built into my engine. For now, support for several commands has been added, but their set will expand significantly in the near future. I am very pleased …

---

## [Reconstruction of world position from depth (SDL3 GPU) \[Solved\]](https://discourse.libsdl.org/t/reconstruction-of-world-position-from-depth-sdl3-gpu-solved/64527)

<div class="topic-metadata">

**Author:** [@dahnielson](https://discourse.libsdl.org/u/dahnielson)\
**Replies:** 1\
**Last updated:** [October 31, 2025, 3:02pm UTC](https://discourse.libsdl.org/t/reconstruction-of-world-position-from-depth-sdl3-gpu-solved/64527 "2025-10-31T15:02:22Z")

</div>

Firs time poster, long time user!. :slight\_smile: I am banging my head against this bug in my project. I am using SDL3 GPU to write a deferred renderer and try to reconstruct the world positions in the scene from the de…

---

## [SDL3 undefined symbol WinMain](https://discourse.libsdl.org/t/sdl3-undefined-symbol-winmain/64470)

<div class="topic-metadata">

**Author:** [@heloonihao](https://discourse.libsdl.org/u/heloonihao)\
**Replies:** 1\
**Last updated:** [October 29, 2025, 4:05am UTC](https://discourse.libsdl.org/t/sdl3-undefined-symbol-winmain/64470 "2025-10-29T04:05:19Z")

</div>

source code #define SDL\_MAIN\_USE\_CALLBACKS #include \<SDL3/SDL\_main.h\> #include \<SDL3/SDL\_events.h\> #include \<SDL3/SDL\_init.h\> #include \<SDL3/SDL.h\> SDL\_AppResult SDL\_AppInit(void \*\*appstate, int argc, char \*\*argv) { …

---

## [How do you decouple SDL (and other libraries) from the graphics api?](https://discourse.libsdl.org/t/how-do-you-decouple-sdl-and-other-libraries-from-the-graphics-api/62666)

<div class="topic-metadata">

**Author:** [@Shawarma](https://discourse.libsdl.org/u/Shawarma)\
**Replies:** 2\
**Last updated:** [October 8, 2025, 7:26pm UTC](https://discourse.libsdl.org/t/how-do-you-decouple-sdl-and-other-libraries-from-the-graphics-api/62666 "2025-10-08T19:26:41Z")

</div>

I am creating a basic 3D game using SDL2 and OpenGL3, and while I intend to stick with these libraries for this project, I still want to abstract/wrap them so that I don’t leak types everywhere. Also, if I ever get aroun…

---

## [Webcam hints](https://discourse.libsdl.org/t/webcam-hints/62330)

<div class="topic-metadata">

**Author:** [@Sward](https://discourse.libsdl.org/u/Sward)\
**Replies:** 0\
**Last updated:** [September 7, 2025, 3:50am UTC](https://discourse.libsdl.org/t/webcam-hints/62330 "2025-09-07T03:50:20Z")

</div>

It took me a bit to figure out the camera API, so here’s some things that might help if you’re also having troubles. First off, there is an example in the source files on github. It’s probably the best place to start. S…

---

## [I want Advice on Game Development Workflow & Tool](https://discourse.libsdl.org/t/i-want-advice-on-game-development-workflow-tool/62002)

<div class="topic-metadata">

**Author:** [@Amelia](https://discourse.libsdl.org/u/Amelia)\
**Replies:** 4\
**Last updated:** [August 23, 2025, 11:31pm UTC](https://discourse.libsdl.org/t/i-want-advice-on-game-development-workflow-tool/62002 "2025-08-23T23:31:04Z")

</div>

Hey everyone, I am figuring out my way through game development & wanted advice from those who have been working with SDL or similar frameworks; I have been experimenting with basic 2D mechanics & slowly moving toward …

---

## [Shader good practices](https://discourse.libsdl.org/t/shader-good-practices/61860)

<div class="topic-metadata">

**Author:** [@elefantinho](https://discourse.libsdl.org/u/elefantinho)\
**Replies:** 0\
**Last updated:** [August 9, 2025, 1:14pm UTC](https://discourse.libsdl.org/t/shader-good-practices/61860 "2025-08-09T13:14:36Z")

</div>

Hello 2025 is current year. Internet has a lot of advice from years/decades ago and I never know if they still hold. I’m learning OpenGL ES 3.0, and I will use its subset that is compatible to WebGL 2.0 so it works on …

---

## [Build SDL2 with CMake for iOS with ANGLE](https://discourse.libsdl.org/t/build-sdl2-with-cmake-for-ios-with-angle/55662)

<div class="topic-metadata">

**Author:** [@SFENCE](https://discourse.libsdl.org/u/SFENCE)\
**Replies:** 8\
**Last updated:** [July 30, 2025, 6:27pm UTC](https://discourse.libsdl.org/t/build-sdl2-with-cmake-for-ios-with-angle/55662 "2025-07-30T18:27:00Z")

</div>

I am trying implement support for iOS in existing game and because it looks like iPhoneSimulator looks to not works well with OpenGLES framework I want to try ANGLE go around using obsolete OpenGLES framework. But I do …

---

## [Minimal OS image that boots on SDL2 app](https://discourse.libsdl.org/t/minimal-os-image-that-boots-on-sdl2-app/60431)

<div class="topic-metadata">

**Author:** [@eri0o](https://discourse.libsdl.org/u/eri0o)\
**Replies:** 1\
**Last updated:** [July 25, 2025, 5:46pm UTC](https://discourse.libsdl.org/t/minimal-os-image-that-boots-on-sdl2-app/60431 "2025-07-25T17:46:19Z")

</div>

Hey, I would like to make the minimal OS image that could boot and run a SDL 2 app, in a raspberry pi 5. Imagine you are putting a game for display in a convention and you want it running as fast as the thing turns, if…

---

## [My game crashes](https://discourse.libsdl.org/t/my-game-crashes/60365)

<div class="topic-metadata">

**Author:** [@xolatgames](https://discourse.libsdl.org/u/xolatgames)\
**Replies:** 10\
**Last updated:** [July 17, 2025, 6:33pm UTC](https://discourse.libsdl.org/t/my-game-crashes/60365 "2025-07-17T18:33:54Z")

</div>

Hi, folks! :victory\_hand:t3: My game crashes when I’m trying to launch this. And I already know where’s the problem. Here’s the source code of my project: https://gitlab.com/xolatgames/birdy-wants-crisps Here’s the mai…

---

## [Is clang-fat.sh only for SDL2, or can it work for SDL2\_image, \_mixer, etc?](https://discourse.libsdl.org/t/is-clang-fat-sh-only-for-sdl2-or-can-it-work-for-sdl2-image-mixer-etc/60243)

<div class="topic-metadata">

**Author:** [@Gianfranco\_Berardi](https://discourse.libsdl.org/u/Gianfranco_Berardi)\
**Replies:** 6\
**Last updated:** [July 4, 2025, 7:16pm UTC](https://discourse.libsdl.org/t/is-clang-fat-sh-only-for-sdl2-or-can-it-work-for-sdl2-image-mixer-etc/60243 "2025-07-04T19:16:15Z")

</div>

I’m trying to create a universal binary for a MacOS build, and I need my dependencies to be universal as well. After trying to figure out how to cross-compile myself, I eventually learned that SDL2’s build-scripts direc…

---

## [Some beginner questions about Surface and FRect](https://discourse.libsdl.org/t/some-beginner-questions-about-surface-and-frect/60210)

<div class="topic-metadata">

**Author:** [@Vamp898](https://discourse.libsdl.org/u/Vamp898)\
**Replies:** 5\
**Last updated:** [June 30, 2025, 7:27am UTC](https://discourse.libsdl.org/t/some-beginner-questions-about-surface-and-frect/60210 "2025-06-30T07:27:01Z")

</div>

Hi there, i am currently learning SDL and i really like it so far. Its a very nice API and as someone who really likes C, i highly appreciate it being written in C. I home some experience developing games for the MegaD…

---

## [Apply white tint to texture](https://discourse.libsdl.org/t/apply-white-tint-to-texture/60202)

<div class="topic-metadata">

**Author:** [@ksylvestre](https://discourse.libsdl.org/u/ksylvestre)\
**Replies:** 4\
**Last updated:** [June 28, 2025, 11:43pm UTC](https://discourse.libsdl.org/t/apply-white-tint-to-texture/60202 "2025-06-28T23:43:55Z")

</div>

Is there a blend mode for applying white to textures? I’m trying to achieve the invulnerability respawn effect seen in the attached images.

---

## [How does sdl optimize creating gl context?](https://discourse.libsdl.org/t/how-does-sdl-optimize-creating-gl-context/60177)

<div class="topic-metadata">

**Author:** [@Fidius](https://discourse.libsdl.org/u/Fidius)\
**Replies:** 1\
**Last updated:** [June 27, 2025, 6:14pm UTC](https://discourse.libsdl.org/t/how-does-sdl-optimize-creating-gl-context/60177 "2025-06-27T18:14:51Z")

</div>

I saw that SDL3 require ~4mb for create gl context, window and renderer. Then i wrote win32 application with creation gl context. I saw that if i create gl context my program requires ~40mb and if i don’t create gl conte…

---

## [Android: No Mouse Input Events detected/send in SDL 2.30.9](https://discourse.libsdl.org/t/android-no-mouse-input-events-detected-send-in-sdl-2-30-9/60101)

<div class="topic-metadata">

**Author:** [@RaFaL](https://discourse.libsdl.org/u/RaFaL)\
**Replies:** 1\
**Last updated:** [June 25, 2025, 10:16pm UTC](https://discourse.libsdl.org/t/android-no-mouse-input-events-detected-send-in-sdl-2-30-9/60101 "2025-06-25T22:16:48Z")

</div>

As subject topic suggest I have no events from USB Mouse connected to my Smartphone it is uisng custom LineageOS Andoid 15 ROM. Mouse is connected via OTG cable and its working fine in Android Home Screen no other apps …

---

## [Copy texture to texture gives a gray alpha channel](https://discourse.libsdl.org/t/copy-texture-to-texture-gives-a-gray-alpha-channel/60091)

<div class="topic-metadata">

**Author:** [@phil1234567819841](https://discourse.libsdl.org/u/phil1234567819841)\
**Replies:** 17\
**Last updated:** [June 20, 2025, 12:24pm UTC](https://discourse.libsdl.org/t/copy-texture-to-texture-gives-a-gray-alpha-channel/60091 "2025-06-20T12:24:30Z")

</div>

Hi, I try to draw a texture to another texture and I get a gray color in place of the alpha = 0 I tried using blend mode all over the place but this gets confusing thanks for your help void DrawTextureToTexture(S…

---

## [how to ship a Windows executable?](https://discourse.libsdl.org/t/how-to-ship-a-windows-executable/59377)

<div class="topic-metadata">

**Author:** [@elefantinho](https://discourse.libsdl.org/u/elefantinho)\
**Replies:** 6\
**Last updated:** [June 17, 2025, 10:12pm UTC](https://discourse.libsdl.org/t/how-to-ship-a-windows-executable/59377 "2025-06-17T22:12:09Z")

</div>

imagine you are happy you accomplished something with SDL, on Windows. an usable program how do you run your program in other computers? I’m on Windows, but I use MSYS2 to develop I’ve obtained advice on Linux specif…

---

## [First SDL3 build using cl in Windows 11](https://discourse.libsdl.org/t/first-sdl3-build-using-cl-in-windows-11/60070)

<div class="topic-metadata">

**Author:** [@LeaCo](https://discourse.libsdl.org/u/LeaCo)\
**Replies:** 2\
**Last updated:** [June 15, 2025, 3:22pm UTC](https://discourse.libsdl.org/t/first-sdl3-build-using-cl-in-windows-11/60070 "2025-06-15T15:22:22Z")

</div>

Hello. Sorry if posted before. New to C. I installed VS Community and using cl to build one of the examples for SDL(lines.c) Example here: examples/renderer/lines I downloaded SDL3 from here: Release 3.2.16 · libs…

---

## [SDL Unable to resolve udev\_device\_get\_action symbol while opening joystick context.](https://discourse.libsdl.org/t/sdl-unable-to-resolve-udev-device-get-action-symbol-while-opening-joystick-context/41507)

<div class="topic-metadata">

**Author:** [@Crimson4911](https://discourse.libsdl.org/u/Crimson4911)\
**Replies:** 3\
**Last updated:** [June 7, 2025, 10:47pm UTC](https://discourse.libsdl.org/t/sdl-unable-to-resolve-udev-device-get-action-symbol-while-opening-joystick-context/41507 "2025-06-07T22:47:38Z")

</div>

I am running through some tutorials on how to use SDL but I have hit an issue that is difficult to get around while using a joystick. My program fails to open a joystick context with an error message: Error: Failed lo…

---

## [SDL\_GetWindowShape?](https://discourse.libsdl.org/t/sdl-getwindowshape/60004)

<div class="topic-metadata">

**Author:** [@lego-eden](https://discourse.libsdl.org/u/lego-eden)\
**Replies:** 2\
**Last updated:** [June 6, 2025, 7:18am UTC](https://discourse.libsdl.org/t/sdl-getwindowshape/60004 "2025-06-06T07:18:49Z")

</div>

So to set the shape of a window i can use SDL\_SetWindowShape, but how can I get the shape of a window once it has been set?

---

## [Cross compiling SDL2 - Dependency question](https://discourse.libsdl.org/t/cross-compiling-sdl2-dependency-question/59954)

<div class="topic-metadata">

**Author:** [@cfrankb](https://discourse.libsdl.org/u/cfrankb)\
**Replies:** 8\
**Last updated:** [June 3, 2025, 8:09pm UTC](https://discourse.libsdl.org/t/cross-compiling-sdl2-dependency-question/59954 "2025-06-03T20:09:07Z")

</div>

I’m trying to build a static library for sdl2 and sdl2\_mixer using mingw so that build can be automated. Here is the docker file; https://raw.githubusercontent.com/cfrankb/cs3-runtime-sdl/refs/heads/github-ci/docker/doc…

---

## [Clarification on OpenGL ES support on desktop](https://discourse.libsdl.org/t/clarification-on-opengl-es-support-on-desktop/59985)

<div class="topic-metadata">

**Author:** [@vinnyhorgan](https://discourse.libsdl.org/u/vinnyhorgan)\
**Replies:** 0\
**Last updated:** [June 2, 2025, 11:08pm UTC](https://discourse.libsdl.org/t/clarification-on-opengl-es-support-on-desktop/59985 "2025-06-02T23:08:18Z")

</div>

Hi all! I was playing around with SDL3 recently, thought of using the OpenGL ES 3.0 api for my next project, just to support all platforms. I started wondering about desktop support of ES. I’ve always heard it wasn’t su…

---

## [jumping sprite](https://discourse.libsdl.org/t/jumping-sprite/59652)

<div class="topic-metadata">

**Author:** [@pbivens85](https://discourse.libsdl.org/u/pbivens85)\
**Replies:** 6\
**Last updated:** [May 12, 2025, 11:00pm UTC](https://discourse.libsdl.org/t/jumping-sprite/59652 "2025-05-12T23:00:11Z")

</div>

I am trying to get a sprite to jump like in mario bros, Character player; player.yVelocity = 0; player.isJumping = false; player.x = 0; player.y = 0; //Hack to get window to stay up bool quit = false; while (quit…

---

## [SDL2 Quest - short adventure game](https://discourse.libsdl.org/t/sdl2-quest-short-adventure-game/59197)

<div class="topic-metadata">

**Author:** [@StephenJSweeney](https://discourse.libsdl.org/u/StephenJSweeney)\
**Replies:** 4\
**Last updated:** [May 9, 2025, 8:53pm UTC](https://discourse.libsdl.org/t/sdl2-quest-short-adventure-game/59197 "2025-05-09T20:53:23Z")

</div>

All, I’ve made a short, silly adventure game in SDL2, that randomly generates a world to explore, including towns to visit, and (simple) quests to complete. You can find it on itch.io: A new world is generated each t…

---

## [SDL3 main callbacks with rust bindgen](https://discourse.libsdl.org/t/sdl3-main-callbacks-with-rust-bindgen/59537)

<div class="topic-metadata">

**Author:** [@exaulo](https://discourse.libsdl.org/u/exaulo)\
**Replies:** 0\
**Last updated:** [May 4, 2025, 10:03pm UTC](https://discourse.libsdl.org/t/sdl3-main-callbacks-with-rust-bindgen/59537 "2025-05-04T22:03:31Z")

</div>

I have a very basic rust project using rust-bindgen to generate SDL3 rust bindings, everything good and basically mapped 1:1 from SDL C examples to rust except the main callbacks, seems the trick requires more than enabl…

---

## [animating sprites](https://discourse.libsdl.org/t/animating-sprites/59512)

<div class="topic-metadata">

**Author:** [@pbivens85](https://discourse.libsdl.org/u/pbivens85)\
**Replies:** 2\
**Last updated:** [May 4, 2025, 9:53pm UTC](https://discourse.libsdl.org/t/animating-sprites/59512 "2025-05-04T21:53:57Z")

</div>

I am trying to animate a bmp file sprite sheet but it does not a sprite to the screen. void setrects(SDL\_Rect\* clip) { clip\[0\].x = 0; clip\[0\].y = 0; } int main( int argc, char\* args ) { //Start up SDL and create …

[Previous page](https://discourse.libsdl.org/c/game-development/7.md)

[Next page](https://discourse.libsdl.org/c/game-development/7.md?page=2)
