first draft of 2d renderer api requirements
This commit is contained in:
parent
fc8f2b387c
commit
1066bb5af3
|
@ -12,4 +12,16 @@ struct sw_renderer2d {
|
||||||
|
|
||||||
struct sw_renderer2d *sw_renderer2d_create();
|
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 */
|
#endif /* GUARD_2B56918289975E8AA8711D6E080ED4B9 */
|
||||||
|
|
Loading…
Reference in New Issue