libsdl-org/SDL
View on GitHub ↗ ★ 16,932 C
Simple DirectMedia Layer
59 mentions on Hacker News by 50 people: 17 stories, 42 comments · first 2021-05-08 · latest 2026-10-27
20082026
-
Same for SDL https://github.com/libsdl-org/SDL/blob/main/AGENTS.md ``` Generative AI, including large language models (LLMs), should not be used in any way when contributing to SDL. We want our code to be art. We want to interact with real…
comment by mococa · 2026-10-01 -
…support, since there's just too many devices that haven't properly implemented the Vulkan spec. ( https://github.com/libsdl-org/SDL/issues/12652#issuecomment-... ) Another data point: the current maintainer of the renderer portion of the…
comment by cyber_kinetist · 2026-07-23 · in Learn OpenGL, extensive tutorial resource for learning Modern OpenGL -
https://github.com/libsdl-org/SDL/pull/15528
comment by haunter · 2026-05-15 · in SDL Library Adds Support for the New Steam Controller Without Depending on Steam -
…main developer has been at Valve for years, already has added support for it back in November: https://github.com/libsdl-org/SDL/blob/main/src/joystick/hid...
comment by ThatPlayer · 2026-05-07 · in Valve releases Steam Controller CAD files under Creative Commons license -
…an exact copy was where the author explicitly licensed the code under a more permissive license: https://github.com/libsdl-org/SDL/blob/5bda0ccfb06ea56c1f15a...
comment by johndough · 2026-04-16 · in SDL bans AI-written commits -
…better off looking at the examples page and repo for SDL itself. https://examples.libsdl.org/SDL3/ https://github.com/libsdl-org/SDL/tree/main/examples
comment by krapp · 2026-04-06 · in LÖVE: 2D Game Framework for Lua -
SDL3 doesn't support bindless resources and the plans to do so in the future are very loose[1]. [1] https://github.com/libsdl-org/SDL/issues/11148#issuecomment-...
comment by hresvelgr · 2026-04-06 · in LÖVE: 2D Game Framework for Lua -
…an app like sc-controller to use the touchpads for anything more complicated than mouse input. https://github.com/libsdl-org/SDL/commit/1998b650452bdf0bee5...
comment by ikkun · 2026-02-05 · in Steam Hardware: Launch timing and other FAQs -
Like these? https://github.com/libsdl-org/SDL/releases/tag/release-3.2.2...
comment by pjmlp · 2025-10-22 · in rlsw – Raylib software OpenGL renderer in less than 5k LOC -
…and exist in C too. I'll just link to some of the bugs directly that posted as issues to SDL: https://github.com/libsdl-org/SDL/issues/4789 (not fixed) https://github.com/libsdl-org/SDL/issues/4816 (closed)…
comment by gingerBill · 2025-09-11 · in A critique of package managers -
…the test folder in the repo[0] for more interesting stuff and of course the Discourse forum[1]. [0] https://github.com/libsdl-org/SDL/tree/main/test [1] https://discourse.libsdl.org/
comment by krapp · 2025-05-17 · in SDL3 examples: Full game and app demos -
…header text to include. Here's an example of this from a random file in the SDL source code: https://github.com/libsdl-org/SDL/blob/main/src/video/SDL_bl... Obviously Microsoft is still committing copyright infringement and in the wrong…
comment by ndiddy · 2025-04-21 · in Getting forked by Microsoft -
…doesn't even enumerate all of the possible values! You need to source-dive to get them: https://github.com/libsdl-org/SDL/blob/f45ce45603a00e92332f9... - plus any possible patches in ports; most developers won't ever care, and will just…
comment by rollcat · 2025-01-01 · in Building Game Prototypes with LÖVE -
…that need manual fixing. [1] https://ioquake3.org/ioquake3/ryan-c-gordon-ports-ioquake3-f... [2] https://github.com/libsdl-org/SDL/blob/main/build-scripts/SD...
comment by janice1999 · 2024-12-26 · in Coccinelle -
…doesn't. It's really that simple. I think this exchange can help you understand my position better: https://github.com/libsdl-org/SDL/pull/9345#issuecomment-201... >Wayland has a myriad of unresolved problems regarding surface suspension…
comment by AlienRobot · 2024-10-07 · in XFCE 4.20 aims to bring preliminary Wayland support -
SDL can be used to provide something similar to what you describe. https://github.com/libsdl-org/SDL/blob/main/docs/README-andr...
comment by RunSet · 2024-09-23 · in Rawdrawandroid – Build Android apps without any Java, in C and Make -
…https://github.com/Rust-SDL2/rust-sdl2/blob/master/src/sdl2/... SDL/test /testautomation_render.c: https://github.com/libsdl-org/SDL/blob/main/test/testautomat...
comment by westurner · 2024-08-30 · in SDL3 new GPU API merged -
…and FXC/DXC, respectively (NB: It seems this currently wouldn't compile against SDL3 master). [1] https://github.com/libsdl-org/SDL/blob/d1a2c57fb99f29c38f509... [2] https://moonside.games/posts/layers-all-the-way-down [3]…
comment by e4m2 · 2024-08-30 · in SDL3 new GPU API merged -
…haven't been added to Wayland yet so Valve added equivalent protocols to Gamescope as a workaround: https://github.com/libsdl-org/SDL/pull/9345 One thing to note is that the Steam Deck only uses Wayland for its fullscreen gaming mode. When…
comment by ndiddy · 2024-04-27 · in 12to11 – run Wayland applications on an X server -
…ObjC files at all. SDL2 has a bunch of Cocoa files[1] so you did use Cocoa even if unknowingly. [1] https://github.com/libsdl-org/SDL/tree/main/src/video/cocoa
comment by speps · 2024-04-19 · in C-Macs – a pure C macOS application -
Correct. It's explained here: https://github.com/libsdl-org/SDL/pull/9345#issuecomment-201... XWayland has special hooks into the compositors that normal wayland clients don't get.
comment by crotchfire · 2024-03-25 · in Revert "video: Prefer Wayland over X11 (take 2)" -
Best comment: https://github.com/libsdl-org/SDL/pull/9345#issuecomment-201... > SDL is not your tool for "signaling to stakeholders" about what is important. But but but I need engagement for my team!
comment by crotchfire · 2024-03-25 · in Revert "video: Prefer Wayland over X11 (take 2)" -
I don't know for sure, but could it be this? https://github.com/libsdl-org/SDL
comment by JohnFen · 2024-02-27 · in Ask HN: What is the SDL.h file in SuperTux? -
Found about this through the release of SDL 3: https://github.com/libsdl-org/SDL/blob/main/build-scripts/SD...
comment by speps · 2023-12-16 · in Semantic Patching in C with Coccinelle -
…correct? I do think there's a lot more going on than that. Here's SDL's current pixel access code: https://github.com/libsdl-org/SDL/blob/main/src/video/SDL_su... To do a pixel read there's at least a lock, memcpy, format conversion and an…
comment by vkaku · 2023-11-29 · in BBC Basic returns on multiple platforms, open sourced -
…to override static links with system dynamic links at application launch. SDL works like that: https://github.com/libsdl-org/SDL/blob/main/docs/README-dyna...
comment by seba_dos1 · 2023-06-05 · in Response to “Developers are lazy, thus Flatpak” -
…version at runtime, even if it is statically linked, though they still suggest to link dynamically: https://github.com/libsdl-org/SDL/blob/main/docs/README-dyna...
comment by hburd · 2023-02-12 · in How to create portable Linux binaries -
…you really think the SDL devs would bother with such a thing if it weren't a common practice? [0] https://github.com/libsdl-org/SDL/blob/release-2.26.2/src/dy...
comment by pengaru · 2023-02-02 · in Even with the M2 Pro, Mac gaming is as bad as it’s ever been -
Hmm... Looks like sdl2-config is deprecated and will be removed for SDL3: https://github.com/libsdl-org/SDL/issues/6140
comment by ufo · 2023-01-08 · in SDL2 common mistakes and how to avoid them -
…been a lot more relevant though. [1] - https://www.phoronix.com/review/nvidia-510-wayland [2] - https://github.com/libsdl-org/SDL/pull/6362
comment by vially · 2022-12-31 · in Write a Wayland Compositor [video] -
…what rocksdb is but I assume it has its own C API library. [0] https://github.com/json-c/json-c [1] https://github.com/libsdl-org/SDL
comment by krapp · 2022-10-15 · in Ask HN: Modern C Libraries -
…Usually all libs have version tags associated: https://github.com/fmtlib/fmt/releases/tag/9.1.0 https://github.com/libsdl-org/SDL/releases/tag/release-2.24.... Rust Cargo.toml files help you to specify the version number or place * for the…
comment by omac777 · 2022-09-28 · in Why is it that C++ package managers are unnecessarily hard? – or are they? -
…Please uses a statically linked version of SDL, without udev or inotify support compiled in. 1: https://github.com/libsdl-org/SDL/blob/d0de4c625ad26ef540166...
comment by nemetroid · 2022-01-02 · in Fixing stutters in Papers Please on Linux -
…layer, where you can override it with your own copy of SDL even if it was statically linked: https://github.com/libsdl-org/SDL/blob/main/docs/README-dyna...
comment by edflsafoiewq · 2022-01-02 · in Fixing stutters in Papers Please on Linux -
1. Those will probably use SDL which has got support for wayland CSD: https://github.com/libsdl-org/SDL/pull/4068 2. Wine apps will probably have to draw the win32 decorations. Native apps can implement their own decorations or can use GTK…
comment by shatteredgate · 2021-12-20 · in Bottles: GUI front end to run Windows software on Linux -
…I barely know SDL, but it does not look like it is super straightforward to integrate a socket: https://github.com/libsdl-org/SDL/blob/main/src/video/windows/SDL_windowsevents.c#L1430 https://github.com/libsdl-org/SDL-1.2/blob/main/src/even…
comment by jstimpfle · 2021-12-11 · in Space-shooter.c: cross-platform, top-down 2D space shooter written in C -
... apparently I was mistaken, this hasn't been released yet, it will be out with 2.0.18[0] [0] https://github.com/libsdl-org/SDL/milestone/2
comment by krapp · 2021-11-14 · in SDL gets an Epic MegaGrant to work on next-gen Vulkan API -
…write, if I feel like a masochist) a lightweight GUI library that uses QML like syntax in Lua. [0] https://github.com/libsdl-org/SDL/pull/4195
comment by krapp · 2021-07-31 · in The Grim GUI Landscape -
…of code exactly? For comparison SDLs wayland backend implementation is like <10k lines of code: https://github.com/libsdl-org/SDL/tree/main/src/video/waylan...
comment by zokier · 2021-05-23 · in Wayland: “Move fast and break things” as a moral imperative -
…could still be using libraries dynamically loaded at runtime for other necessary system components: https://github.com/libsdl-org/SDL/blob/c59d4dcd38c382a1e9b69... This is a hard requirement if your application uses OpenGL or Vulkan, you…
comment by zxzax · 2021-05-22 · in Building Outer Wonders for Linux -
…setting an env var: SDL_DYNAMIC_API=/my/actual/libSDL-2.0.so.0 ./MyGameThatIsStaticallyLinkedToSDL2 https://github.com/libsdl-org/SDL/blob/main/docs/README-dyna...
comment by MayeulC · 2021-05-22 · in Building Outer Wonders for Linux -
…target's endianness? C++20 added std::endian. Otherwise you can use a macro like this one from SDL https://github.com/libsdl-org/SDL/blob/9dc97afa7190aca5bdf92...
comment by edflsafoiewq · 2021-05-08 · in The Byte Order Fiasco