Sam Lantinga

Results 1875 comments of Sam Lantinga

Can you explain more? Conceptually the logical rect is the viewport that you can draw into and it shouldn't matter where it is.

That makes sense, thanks.

This requires us to bring in a hard dependency on WebGPU, right? If so, this is probably more a candidate for a README-webgpu.md than an API we’d add. There are...

With your proposal you'll get an invalid memory access if you try to write `if (buttons[SDL_BUTTON_X2]) ...`

> Is there a reason the `SDL_BUTTON_*` macro's don't start from `0`? Yes, so that 0 is an invalid button.

I'll go ahead and close this, I think it would cause more programming errors than it solves, unfortunately.

It seems like returning the raw EDID might be generally useful, and could be done across multiple platforms.

What specific data do you need? SDL3 has some HDR metadata exposed as properties on the display.

So, for SDL, does it make sense for these properties to be on the window? On Windows these properties are on the display, but we could expose them on the...

Most movie players will have built-in colorspace conversion and will target the compositor's desired colorspace like games.