summaryrefslogtreecommitdiff
path: root/src/post/goom/lines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/post/goom/lines.h')
-rw-r--r--src/post/goom/lines.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/post/goom/lines.h b/src/post/goom/lines.h
index 3401cb38a..9c6df9240 100644
--- a/src/post/goom/lines.h
+++ b/src/post/goom/lines.h
@@ -1,24 +1,25 @@
+#ifndef _LINES_H
+#define _LINES_H
+
/*
* lines.h
- * iGoom
- *
- * Created by guillaum on Tue Aug 14 2001.
- * Copyright (c) 2001 ios. All rights reserved.
+ * Goom
+ * Copyright (c) 2000-2003 iOS-software. All rights reserved.
*/
-#include "graphic.h"
+#include "goom_typedefs.h"
+#include "goom_graphic.h"
#include "goom_config.h"
-typedef struct _GMUNITPOINTER
+struct _GMUNITPOINTER
{
float x;
float y;
float angle;
-}
-GMUnitPointer;
+};
-// tableau de points
-typedef struct _GMLINE
+/* tableau de points */
+struct _GMLINE
{
GMUnitPointer *points;
@@ -29,9 +30,7 @@ typedef struct _GMLINE
float amplitude;
int nbPoints;
- guint32 color; /* pr l'instant je stocke la ouuleur * * a *
- * * * terme, on stockera le mode couleur..
- * et * * * l'on animera */
+ guint32 color; /* pour l'instant je stocke la couleur a terme, on stockera le mode couleur et l'on animera */
guint32 color2;
int screenX;
@@ -39,21 +38,22 @@ typedef struct _GMLINE
float power;
float powinc;
-}
-GMLine;
-// les ID possibles
+ PluginInfo *goomInfo;
+};
+
+/* les ID possibles */
#define GML_CIRCLE 0
-// (param = radius)
+/* (param = radius) */
#define GML_HLINE 1
-// (param = y)
+/* (param = y) */
#define GML_VLINE 2
-// (param = x)
+/* (param = x) */
-// les modes couleur possible (si tu mets un autre c'est noir)
+/* les modes couleur possible (si tu mets un autre c'est noir) */
#define GML_BLEUBLANC 0
#define GML_RED 1
@@ -64,18 +64,18 @@ GMLine;
#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);
+GMLine *goom_lines_init (PluginInfo *goomInfo, 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,
- float amplitude,
- int modeCoul);
+ float amplitude,
+ 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_draw (PluginInfo *plugInfo, GMLine * gml, gint16 data[512], Pixel *p);
-//void goom_lines_conf(gint16 config [25]);
+#endif /* _LINES_H */