diff options
author | Brian Paul <[email protected]> | 2000-01-28 19:01:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-01-28 19:01:45 +0000 |
commit | 3228421f69764c10dbbf5cd3df49f133b152515a (patch) | |
tree | a10375e192672480d37bdbc4ea2157de2a292bcf /src/mesa | |
parent | 8d365ab2048bfee8cd4138c15cb0371fd63f31da (diff) |
added default template macros
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/glapi/glapitemp.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/src/mesa/glapi/glapitemp.h b/src/mesa/glapi/glapitemp.h index a847e9c2dd7..1c394f04d5a 100644 --- a/src/mesa/glapi/glapitemp.h +++ b/src/mesa/glapi/glapitemp.h @@ -1,4 +1,4 @@ -/* $Id: glapitemp.h,v 1.8 2000/01/10 04:29:10 brianp Exp $ */ +/* $Id: glapitemp.h,v 1.9 2000/01/28 19:01:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -50,6 +50,32 @@ */ +#ifndef KEYWORD1 +#define KEYWORD1 +#endif + +#ifndef KEYWORD2 +#define KEYWORD2 +#endif + +#ifndef NAME +#define NAME(func) gl##func +#endif + +#ifndef DISPATCH +#define DISPATCH(func, args, msg) \ + const struct _glapi_table *dispatch; \ + dispatch = _glapi_Dispatch ? _glapi_Dispatch : _glapi_get_dispatch();\ + (dispatch->func) args +#endif + +#ifndef RETURN_DISPATCH +#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ + const struct _glapi_table *dispatch; \ + dispatch = _glapi_Dispatch ? _glapi_Dispatch : _glapi_get_dispatch();\ + return (dispatch->func) args +#endif + /* * XXX @@ -58,6 +84,7 @@ */ + /* GL 1.0 */ KEYWORD1 void KEYWORD2 NAME(Accum)(GLenum op, GLfloat value) |