scummvm/engine/tinygl/memory.cpp

19 lines
268 B
C++
Raw Normal View History

2006-05-16 14:52:36 +00:00
// Memory allocator for TinyGL
2005-01-12 15:26:45 +00:00
#include "tinygl/zgl.h"
2006-05-16 14:52:36 +00:00
// modify these functions so that they suit your needs
2006-05-16 14:52:36 +00:00
void gl_free(void *p) {
free(p);
}
2006-05-16 14:52:36 +00:00
void *gl_malloc(int size) {
return malloc(size);
}
2006-05-16 14:52:36 +00:00
void *gl_zalloc(int size) {
return calloc(1, size);
}