first draft of 2d renderer api requirements

This commit is contained in:
DaniTheSkunk 2023-03-28 17:06:07 +00:00
parent fc8f2b387c
commit 1066bb5af3
1 changed files with 12 additions and 0 deletions

View File

@ -12,4 +12,16 @@ struct sw_renderer2d {
struct sw_renderer2d *sw_renderer2d_create();
/* Api needed:
- clear screen
- set color
- set texture (alternatively none)
- set repeat
- blend modes per draw call maybe?
- draw quad
- draw "sprite" (quad of same size as texture)
- draw line
- transform matrix stack
*/
#endif /* GUARD_2B56918289975E8AA8711D6E080ED4B9 */