summaryrefslogtreecommitdiff
path: root/src/post/goom/lines.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-12-25 04:59:14 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-12-25 04:59:14 +0000
commit7232ac8416bc30a093500a3bdf5d908be3273d76 (patch)
treeb54669a95f05fd80ac5886d1560c7e2fd2b3f590 /src/post/goom/lines.h
parent024d463a3cfed56ab3db964488a8dd9dbf7bf1d4 (diff)
downloadxine-lib-7232ac8416bc30a093500a3bdf5d908be3273d76.tar.gz
xine-lib-7232ac8416bc30a093500a3bdf5d908be3273d76.tar.bz2
What a GOOM!
Michael, please review the xine_goom.c code. i'm not sure about some post plugin concepts like "rewiring"... note: that code is quite cpu intensive, so i hardcoded it to 10fps. CVS patchset: 3673 CVS date: 2002/12/25 04:59:14
Diffstat (limited to 'src/post/goom/lines.h')
-rw-r--r--src/post/goom/lines.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/post/goom/lines.h b/src/post/goom/lines.h
new file mode 100644
index 000000000..c0c12d73a
--- /dev/null
+++ b/src/post/goom/lines.h
@@ -0,0 +1,75 @@
+/*
+ * lines.h
+ * iGoom
+ *
+ * Created by guillaum on Tue Aug 14 2001.
+ * Copyright (c) 2001 ios. All rights reserved.
+ */
+
+#include "graphic.h"
+#include "goom_config.h"
+
+typedef struct _GMUNITPOINTER {
+ float x;
+ float y;
+ float angle;
+} GMUnitPointer;
+
+// tableau de points
+typedef struct _GMLINE {
+
+ GMUnitPointer *points;
+ GMUnitPointer *points2;
+ int IDdest;
+ float param;
+
+ int nbPoints;
+ guint32 color; /* pr l'instant je stocke la ouuleur
+ * a terme, on stockera le mode couleur.. et l'on animera
+ */
+ guint32 color2;
+
+ int screenX;
+ int screenY;
+
+ float power;
+ float powinc;
+} GMLine;
+
+// les ID possibles
+
+#define GML_CIRCLE 0
+// (param = radius)
+
+#define GML_HLINE 1
+// (param = y)
+
+#define GML_VLINE 2
+// (param = x)
+
+// les modes couleur possible (si tu mets un autre c'est noir)
+
+#define GML_BLEUBLANC 0
+#define GML_RED 1
+#define GML_ORANGE_V 2
+#define GML_ORANGE_J 3
+#define GML_VERT 4
+#define GML_BLEU 5
+#define GML_BLACK 6
+
+/* construit un effet de line (une ligne horitontale pour commencer) */
+GMLine *goom_lines_init (int rx, int ry,
+ int IDsrc, float paramS, int modeCoulSrc,
+ int IDdest, float paramD, int modeCoulDest);
+
+void goom_lines_switch_to (GMLine *gml, int IDdest, float param, int modeCoul);
+
+void goom_lines_set_res (GMLine *gml, int rx, int ry);
+
+void goom_lines_free (GMLine **gml);
+
+void goom_lines_draw (GMLine *gml,
+ gint16 data [512],
+ unsigned int* p);
+//void goom_lines_conf(gint16 config [25]);
+