X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgaw%2Fgawswtnl.h;h=d01629189b71b04f532b5e99553a24eab4f31a6e;hb=86ea36402d2ba296db0950d85e18c50f7ee7006b;hp=7510f16766cd48063bc5b128b05973551879fcbf;hpb=b0088adf036a53139f67ebf96f1bbb55abf199f4;p=retroray diff --git a/src/gaw/gawswtnl.h b/src/gaw/gawswtnl.h index 7510f16..d016291 100644 --- a/src/gaw/gawswtnl.h +++ b/src/gaw/gawswtnl.h @@ -89,6 +89,8 @@ struct gaw_state { int vertex_nelem, texcoord_nelem, color_nelem; int vertex_stride, normal_stride, texcoord_stride, color_stride; + float zoffs; + /* immediate mode */ int imm_prim; int imm_numv, imm_pcount; @@ -128,6 +130,15 @@ void gaw_swtnl_drawprim(int prim, struct vertex *v, int vnum); #if defined(__i386__) || defined(__386__) || defined(MSDOS) + +#ifndef INLINE +#if (__STDC_VERSION__ >= 199901) || defined(__GNUC__) +#define INLINE inline +#else +#define INLINE __inline +#endif +#endif + /* fast conversion of double -> 32bit int * for details see: * - http://chrishecker.com/images/f/fb/Gdmfp.pdf