Hacker GitHub

← All repos

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

Mentions per year 59 mentions · busiest year 2024 (14)
20082026
  1. 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
  2. …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…
  3. https://github.com/libsdl-org/SDL/pull/15528
  4. …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...
  5. …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
  6. …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
  7. 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
  8. …an app like sc-controller to use the touchpads for anything more complicated than mouse input. https://github.com/libsdl-org/SDL/commit/1998b650452bdf0bee5...
  9. Like these? https://github.com/libsdl-org/SDL/releases/tag/release-3.2.2...
  10. …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
  11. …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
  12. …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
  13. …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
  14. …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
  15. …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…
  16. SDL can be used to provide something similar to what you describe. https://github.com/libsdl-org/SDL/blob/main/docs/README-andr...
  17. …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
  18. …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
  19. …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…
  20. …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
  21. 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.
  22. 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!
  23. I don't know for sure, but could it be this? https://github.com/libsdl-org/SDL
  24. 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
  25. …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…
  26. …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...
  27. …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
  28. …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...
  29. Hmm... Looks like sdl2-config is deprecated and will be removed for SDL3: https://github.com/libsdl-org/SDL/issues/6140
  30. …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]
  31. …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
  32. …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…
  33. …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
  34. …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
  35. 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…
  36. …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…
  37. ... 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
  38. …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
  39. …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...
  40. …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
  41. …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
  42. …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