]> git.cworth.org Git - fips/commit
fips-dispatch: Completely separate fips-dispatch GL prototypes from GL/gl.h
authorCarl Worth <cworth@cworth.org>
Mon, 24 Jun 2013 20:22:59 +0000 (13:22 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 24 Jun 2013 20:31:49 +0000 (13:31 -0700)
commit6475596e655063624dbf54359bd2a45de6a17dd1
tree325e788ecbb87af7be9f491a6330973de9eaa2af
parent5569357a9fc7189c2bae43773f44ba576583ec2b
fips-dispatch: Completely separate fips-dispatch GL prototypes from GL/gl.h

Move the OpenGL prototypes previously in fips-dispatch.h to a new
fips-dispatch-gl.h. The idea here is that any given file should
include only one of GL/gl.h or fips-dispatch-gl.h.

Files that implement libfips wrappers for OpenGL functions include
GL/gl.h to ensure that they implement functions with the correct
prototypes.

Meanwhile, files that call into OpenGL functions at run-time, (such as
metrics.c which calls the various OpenGL query-related functions),
instead include fips-dispatch-gl.h and do not include GL/gl.h. With
this approach, any new calls to OpenGL functions will cause
compilation warnings if the stubs are not also added to
fips-dispatch-gl.h.
Makefile.local
fips-dispatch-gl.c [new file with mode: 0644]
fips-dispatch-gl.h [new file with mode: 0644]
fips-dispatch.c
fips-dispatch.h
glwrap.c
metrics.c