SDLQuake's gl_draw.c
Posted: Fri Jan 27, 2012 3:07 am
I'm having some trouble compiling SDLQuake gl_draw.c:
And a lot more...
Code: Select all
gcc -o gl_draw.o -c -g -O3 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL gl_draw.c
gl_draw.c:54:22: error: 'GL_LINEAR_MIPMAP_NEAREST' undeclared here (not in a function)
gl_draw.c:55:22: error: 'GL_LINEAR' undeclared here (not in a function)
gl_draw.c: In function 'GL_Bind':
gl_draw.c:77:6: error: 'currenttexture' undeclared (first use in this function)
gl_draw.c:77:6: note: each undeclared identifier is reported only once for each function it appears in
gl_draw.c:83:16: error: 'GL_TEXTURE_2D' undeclared (first use in this function)
gl_draw.c: At top level:
gl_draw.c:307:17: error: 'GL_NEAREST' undeclared here (not in a function)
gl_draw.c:309:32: error: 'GL_NEAREST_MIPMAP_NEAREST' undeclared here (not in a function)