xine-lib  1.2.9
lines.h
Go to the documentation of this file.
1 #ifndef _LINES_H
2 #define _LINES_H
3 
4 /*
5  * lines.h
6  * Goom
7  * Copyright (c) 2000-2003 iOS-software. All rights reserved.
8  */
9 
10 #include "goom_typedefs.h"
11 #include "goom_graphic.h"
12 #include "goom_config.h"
13 
15 {
16  float x;
17  float y;
18  float angle;
19 };
20 
21 /* tableau de points */
22 struct _GMLINE
23 {
24 
27  int IDdest;
28  float param;
29  float amplitudeF;
30  float amplitude;
31 
32  int nbPoints;
33  guint32 color; /* pour l'instant je stocke la couleur a terme, on stockera le mode couleur et l'on animera */
35 
36  int screenX;
37  int screenY;
38 
39  float power;
40  float powinc;
41 
43 };
44 
45 /* les ID possibles */
46 
47 #define GML_CIRCLE 0
48 /* (param = radius) */
49 
50 #define GML_HLINE 1
51 /* (param = y) */
52 
53 #define GML_VLINE 2
54 /* (param = x) */
55 
56 /* les modes couleur possible (si tu mets un autre c'est noir) */
57 
58 #define GML_BLEUBLANC 0
59 #define GML_RED 1
60 #define GML_ORANGE_V 2
61 #define GML_ORANGE_J 3
62 #define GML_VERT 4
63 #define GML_BLEU 5
64 #define GML_BLACK 6
65 
66 /* construit un effet de line (une ligne horitontale pour commencer) */
67 GMLine *goom_lines_init (PluginInfo *goomInfo, int rx, int ry,
68  int IDsrc, float paramS, int modeCoulSrc,
69  int IDdest, float paramD, int modeCoulDest);
70 
71 void goom_lines_switch_to (GMLine * gml, int IDdest, float param,
72  float amplitude,
73  int modeCoul);
74 
75 void goom_lines_set_res (GMLine * gml, int rx, int ry);
76 
77 void goom_lines_free (GMLine ** gml);
78 
79 void goom_lines_draw (PluginInfo *plugInfo, GMLine * gml, gint16 data[512], Pixel *p);
80 
81 #endif /* _LINES_H */
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition: lines.c:107
Definition: lines.h:14
float amplitude
Definition: lines.h:30
int IDdest
Definition: lines.h:27
void goom_lines_draw(PluginInfo *plugInfo, GMLine *gml, signed short int data[512], Pixel *p)
Definition: lines.c:211
void goom_lines_free(GMLine **gml)
Definition: lines.c:203
#define gint16
Definition: goom_config.h:30
GMUnitPointer * points2
Definition: lines.h:26
int screenY
Definition: lines.h:37
float powinc
Definition: lines.h:40
Definition: goom_graphic.h:55
float angle
Definition: lines.h:18
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int modeCoul)
Definition: lines.c:157
Definition: lines.h:22
unsigned int color
Definition: lines.h:33
GMUnitPointer * points
Definition: lines.h:25
int nbPoints
Definition: lines.h:32
float amplitudeF
Definition: lines.h:29
int screenX
Definition: lines.h:36
float x
Definition: lines.h:16
#define guint32
Definition: goom_config.h:28
Definition: goom_plugin_info.h:75
float param
Definition: lines.h:28
PluginInfo * goomInfo
Definition: lines.h:42
float power
Definition: lines.h:39
float y
Definition: lines.h:17
GMLine * goom_lines_init(PluginInfo *goomInfo, int rx, int ry, int IDsrc, float paramS, int modeCoulSrc, int IDdest, float paramD, int modeCoulDest)
Definition: lines.c:168
unsigned int color2
Definition: lines.h:34