projects
/
retroray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dos port underway
[retroray]
/
src
/
gaw
/
gawswtnl.h
diff --git
a/src/gaw/gawswtnl.h
b/src/gaw/gawswtnl.h
index
7510f16
..
d016291
100644
(file)
--- 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;
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;
/* 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)
#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
/* fast conversion of double -> 32bit int
* for details see:
* - http://chrishecker.com/images/f/fb/Gdmfp.pdf