summaryrefslogtreecommitdiff
path: root/src/post/goom/v3d.h
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-06-27 11:58:47 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-06-27 11:58:47 +0000
commit90f730ca714fb53f47ee16be46fcb06bd98d53ed (patch)
treec028f9afa30ec4137501fdada9c6ef1130daf2fb /src/post/goom/v3d.h
parent29f04d913513a470bc91aff3e6c0fca699e460f8 (diff)
downloadxine-lib-90f730ca714fb53f47ee16be46fcb06bd98d53ed.tar.gz
xine-lib-90f730ca714fb53f47ee16be46fcb06bd98d53ed.tar.bz2
include the new goom version 2k4-dev15
everybody: test, test, test CVS patchset: 6756 CVS date: 2004/06/27 11:58:47
Diffstat (limited to 'src/post/goom/v3d.h')
-rwxr-xr-xsrc/post/goom/v3d.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/post/goom/v3d.h b/src/post/goom/v3d.h
index dcf74fd65..7690847f2 100755
--- a/src/post/goom/v3d.h
+++ b/src/post/goom/v3d.h
@@ -8,13 +8,17 @@
#include "mathtools.h"
typedef struct {
- float x,y,z;
+ float x,y,z;
} v3d;
typedef struct {
- int x,y;
+ int x,y;
} v2d;
+typedef struct {
+ double x,y;
+} v2g;
+
/*
* projete le vertex 3D sur le plan d'affichage
* retourne (0,0) si le point ne doit pas etre affiche.
@@ -23,7 +27,7 @@ typedef struct {
*/
#define V3D_TO_V2D(v3,v2,width,height,distance) \
{ \
- int Xp, Yp; \
+ int Xp, Yp; \
if (v3.z > 2) { \
F2I((distance * v3.x / v3.z),Xp) ; \
F2I((distance * v3.y / v3.z),Yp) ; \
@@ -33,6 +37,8 @@ typedef struct {
else v2.x=v2.y=-666; \
}
+void v3d_to_v2d(v3d *src, int nbvertex, int width, int height, float distance, v2d *v2_array);
+
/*
* rotation selon Y du v3d vi d'angle a (cosa=cos(a), sina=sin(a))
* centerz = centre de rotation en z