/*
-Deep Runner - 6dof shooter game for the SGI O2.
+RetroRay - integrated standalone vintage modeller/renderer
Copyright (C) 2023 John Tsiombikas <nuclear@mutantstargoat.com>
This program is free software: you can redistribute it and/or modify
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;
void gaw_swtnl_drawprim(int prim, struct vertex *v, int vnum);
-#if defined(__i386__) || defined(__386__) || defined(MSDOS)
-/* fast conversion of double -> 32bit int
- * for details see:
- * - http://chrishecker.com/images/f/fb/Gdmfp.pdf
- * - http://stereopsis.com/FPU.html#convert
- */
-static INLINE int32_t cround64(double val)
-{
- val += 6755399441055744.0;
- return *(int32_t*)&val;
-}
-#else
-#define cround64(x) ((int32_t)(x))
-#endif
-
-
#endif /* GAWSWTNL_H_ */