diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-09-08 10:05:36 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2009-09-12 20:55:56 +0800 |
commit | 940b525a5acb1926cbd8b39594ecda3e614a3c2f (patch) | |
tree | e2de99ebc2d3a1af6a25088e4ea2af05880cf17b /src/mesa/main/rastpos.h | |
parent | 93c3911ca836187a99f28de3301b7957299dd75e (diff) |
mesa/main: New feature FEATURE_rastpos.
It is separated from FEATURE_drawpix and made to follow the feature
convensions.
Diffstat (limited to 'src/mesa/main/rastpos.h')
-rw-r--r-- | src/mesa/main/rastpos.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/mesa/main/rastpos.h b/src/mesa/main/rastpos.h index 363f86ad87..767d6f2677 100644 --- a/src/mesa/main/rastpos.h +++ b/src/mesa/main/rastpos.h @@ -32,9 +32,16 @@ #define RASTPOS_H -#include "glheader.h" +#include "main/mtypes.h" +#if FEATURE_rastpos + +#define _MESA_INIT_RASTPOS_FUNCTIONS(driver, impl) \ + do { \ + (driver)->RasterPos = impl ## RasterPos; \ + } while (0) + extern void GLAPIENTRY _mesa_RasterPos2d(GLdouble x, GLdouble y); @@ -186,8 +193,22 @@ extern void GLAPIENTRY _mesa_WindowPos4svMESA(const GLshort *v); extern void -_mesa_init_rastpos( GLcontext * ctx ); +_mesa_init_rastpos_dispatch(struct _glapi_table *disp); + +#else /* FEATURE_rastpos */ + +#define _MESA_INIT_RASTPOS_FUNCTIONS(driver, impl) do { } while (0) + +static INLINE void +_mesa_init_rastpos_dispatch(struct _glapi_table *disp) +{ +} + +#endif /* FEATURE_rastpos */ + +extern void +_mesa_init_rastpos(GLcontext *ctx); /*@}*/ -#endif +#endif /* RASTPOS_H */ |