mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-10-04 04:19:04 +00:00
fix: provide fallback implementations of iggy GDraw functions
This commit is contained in:
parent
731e7e05c9
commit
e076d76684
|
|
@ -21,32 +21,34 @@
|
||||||
|
|
||||||
// Say hi to sdl
|
// Say hi to sdl
|
||||||
|
|
||||||
// void *IggyGDrawMallocAnnotated(SINTa size, const char *file, int line)
|
#ifndef _ENABLEIGGY
|
||||||
// {
|
void *IggyGDrawMallocAnnotated(SINTa size, const char *file, int line)
|
||||||
// (void)file; (void)line;
|
{
|
||||||
// return malloc((size_t)size);
|
(void)file; (void)line;
|
||||||
// }
|
return malloc((size_t)size);
|
||||||
|
}
|
||||||
|
|
||||||
// void IggyGDrawFree(void *ptr)
|
void IggyGDrawFree(void *ptr)
|
||||||
// {
|
{
|
||||||
// free(ptr);
|
free(ptr);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// void IggyGDrawSendWarning(Iggy *f, char const *message, ...)
|
void IggyGDrawSendWarning(Iggy *f, char const *message, ...)
|
||||||
// {
|
{
|
||||||
// (void)f;
|
(void)f;
|
||||||
// va_list args;
|
va_list args;
|
||||||
// va_start(args, message);
|
va_start(args, message);
|
||||||
// fprintf(stderr, "[Iggy GDraw Warning] ");
|
fprintf(stderr, "[Iggy GDraw Warning] ");
|
||||||
// vfprintf(stderr, message, args);
|
vfprintf(stderr, message, args);
|
||||||
// fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
// va_end(args);
|
va_end(args);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// void IggyDiscardVertexBufferCallback(void *owner, void *buf)
|
void IggyDiscardVertexBufferCallback(void *owner, void *buf)
|
||||||
// {
|
{
|
||||||
// (void)owner; (void)buf;
|
(void)owner; (void)buf;
|
||||||
// }
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// glActiveTexture and glCompressedTexImage2D are core GL 1.3+ on Linux and
|
// glActiveTexture and glCompressedTexImage2D are core GL 1.3+ on Linux and
|
||||||
// are declared directly in <GL/gl.h>, so they are omitted from this list.
|
// are declared directly in <GL/gl.h>, so they are omitted from this list.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue