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

#include "../sponge.h"

void init() {}

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);
}