add relative mouse handling in mouse.asm
[retroray] / src / gaw / gawswtnl.h
index 952f92c..0d78f5d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-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
@@ -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;
@@ -127,20 +129,4 @@ void gaw_swtnl_subtex2d(int lvl, int x, int y, int xsz, int ysz, int fmt, void *
 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_ */