summaryrefslogtreecommitdiff
path: root/examples/rects.c
blob: e78ac69c48a842227f3a6703404e954def650b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <assert.h>

#include "../sponge.h"

void draw_frame(sponge_Texture c) {
    assert(c.width > 140 + 20);
    assert(c.height > 70 + 40);
    sponge_clear(c, 0xFF000000);
    sponge_draw_rect(c, 80, 70, 80 + 20, 70 + 40, 0xFFFF00FF);
    sponge_draw_rect(c, 140, 70, 140 + 20, 70 + 40, 0xFFFF00FF);
}