• Laser@feddit.org
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    22 hours ago

    SDL is kind of the equivalent to DirectX. It provides a standard interface for multimedia applications regardless of underlying mechanisms. Except the 3D acceleration part I think which is handled by OpenGL / Vulkan.

    • gnuhaut@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      6 hours ago

      SDL3 has a new “GPU” API, which is some kind abstraction over Vulkan/DirectX12/Metal. I imagine it hides a bunch of boilerplate as well. With this, I think, one could do a 3D render engine without having to directly use the Vulkan API (or OpenGL, …). However, the shaders need to be in whatever format the backend expects it seems.