From 3b21507274aa4f98644382903ae529c1fc2c7bd4 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 20 Aug 2014 01:36:33 +1000 Subject: GL3D GWIN window + demo --- 3rdparty/tinygl-0.4-ugfx/src/memory.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 3rdparty/tinygl-0.4-ugfx/src/memory.c (limited to '3rdparty/tinygl-0.4-ugfx/src/memory.c') diff --git a/3rdparty/tinygl-0.4-ugfx/src/memory.c b/3rdparty/tinygl-0.4-ugfx/src/memory.c new file mode 100644 index 00000000..e1dc3cbb --- /dev/null +++ b/3rdparty/tinygl-0.4-ugfx/src/memory.c @@ -0,0 +1,21 @@ +/* + * Memory allocator for TinyGL + */ +#include "zgl.h" + +/* modify these functions so that they suit your needs */ + +void gl_free(void *p) +{ + free(p); +} + +void *gl_malloc(int size) +{ + return malloc(size); +} + +void *gl_zalloc(int size) +{ + return calloc(1, size); +} -- cgit v1.2.3