summaryrefslogtreecommitdiff
path: root/examples/triangles.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/triangles.c')
-rw-r--r--examples/triangles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/triangles.c b/examples/triangles.c
index 271de5f..63a2ca9 100644
--- a/examples/triangles.c
+++ b/examples/triangles.c
@@ -1,4 +1,6 @@
#include "../sponge.h"
+#define SPONGE_EXAMPLE_IMPLEMENTATION
+#include "../example.h"
#define SPEED_ABS (2)
#define GRID_SIZE (10)
@@ -7,8 +9,6 @@
static int32_t offset = 0;
static int32_t speed = SPEED_ABS;
-void init() {}
-
void draw_frame(sponge_Texture c) {
sponge_clear(c, sponge_color32_make(0xFF000000));
offset += speed;