clay icon indicating copy to clipboard operation
clay copied to clipboard

Add native macOS renderer backend

Open trufae opened this issue 10 months ago • 3 comments

trufae avatar Mar 14 '25 11:03 trufae

By curiosity, do you mean implementing a Metal backend, or something that would render to native components?

If you meant Metal, how would this be better than say, SDL with Metal.

If you meant native components, I wonder how feasible this is, considering how "opinionated" macOS UI elements are.

Samuel-Martineau avatar Mar 14 '25 13:03 Samuel-Martineau

Uhm i dont think metal would be the target for anything 2D and that would require also other basic window management libraries. My proposal here was to have something native that requires no sdl, but as alternative sdl is kind of the generic way to work everywhere

trufae avatar Mar 17 '25 06:03 trufae

@trufae Anything on macOS would ultimately involve touching Cocoa. I think you are suggesting a CoreGraphics backend. This would be analogous to a GDI or Direct2D backend in Windows land.

MattGuerrette avatar Mar 19 '25 18:03 MattGuerrette