scummvm/graphics/tinygl/memory.cpp

23 lines
327 B
C++
Raw Normal View History

2006-05-16 14:52:36 +00:00
// Memory allocator for TinyGL
2009-05-08 07:32:33 +00:00
#include "graphics/tinygl/zgl.h"
namespace TinyGL {
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);
}
} // end of namespace TinyGL