TinyGL 0.4.1 for MinGW
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
y
z
~
Functions
a
b
d
e
f
g
h
l
m
r
s
u
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
c
d
e
f
g
h
k
l
m
n
p
s
t
u
w
x
Typedefs
g
n
p
z
Enumerations
Enumerator
g
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
TinyGL.MinGW-master
src
memory.c
Go to the documentation of this file.
1
/*
2
* Memory allocator for TinyGL
3
*/
4
#include "
zgl.h
"
5
6
/* modify these functions so that they suit your needs */
7
8
void
gl_free
(
void
*p)
9
{
10
free(p);
11
}
12
13
void
*
gl_malloc
(
int
size)
14
{
15
return
malloc(size);
16
}
17
18
void
*
gl_zalloc
(
int
size)
19
{
20
return
calloc(1, size);
21
}
gl_free
void gl_free(void *p)
Definition:
memory.c:8
gl_zalloc
void * gl_zalloc(int size)
Definition:
memory.c:18
gl_malloc
void * gl_malloc(int size)
Definition:
memory.c:13
zgl.h
Generated by
1.9.2