nmlgc / ssg

秋霜玉 / Shuusou Gyoku
MIT License
20 stars 5 forks source link

Add a SDL_Renderer graphics backend #4

Open nmlgc opened 2 years ago

nmlgc commented 2 years ago

Might as well go fully cross-platform if we decide to change anything. We're probably looking at 5+ ReC98 pushes there, though.

Depends on #5.

nmlgc commented 1 year ago

Received €225 in funding from T0235, along with any necessary dependencies.

nmlgc commented 1 year ago

Turns out that SDL 2 comes with its own abstraction for 2D rendering that just happens to exactly cover everything we need for Shuusou Gyoku. This even includes all the game's Direct3D code, which restricts itself to alpha-blended, untextured, and pre-transformed vertex-colored triangles and lines. It's the exact abstraction I thought I had to write myself, and such a perfect match for this game that it would be foolish to directly write OpenGL. Especially since SDL can also target other graphics APIs that might be preferred on certain operating systems.