xine-lib 1.2.11
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 */
22struct _GMLINE
23{
24
27 int IDdest;
28 float param;
30 float amplitude;
31
33 guint32 color; /* pour l'instant je stocke la couleur a terme, on stockera le mode couleur et l'on animera */
35
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) */
67GMLine *goom_lines_init (PluginInfo *goomInfo, int rx, int ry,
68 int IDsrc, float paramS, int modeCoulSrc,
69 int IDdest, float paramD, int modeCoulDest);
70
71void goom_lines_switch_to (GMLine * gml, int IDdest, float param,
72 float amplitude,
73 int modeCoul);
74
75void goom_lines_set_res (GMLine * gml, int rx, int ry);
76
77void goom_lines_free (GMLine ** gml);
78
79void goom_lines_draw (PluginInfo *plugInfo, GMLine * gml, gint16 data[512], Pixel *p);
80
81#endif /* _LINES_H */
#define guint32
Definition: goom_config.h:28
#define gint16
Definition: goom_config.h:30
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition: lines.c:107
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int modeCoul)
Definition: lines.c:157
void goom_lines_free(GMLine **gml)
Definition: lines.c:203
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
void goom_lines_draw(PluginInfo *plugInfo, GMLine *gml, signed short int data[512], Pixel *p)
Definition: lines.c:211
Definition: lines.h:23
int screenY
Definition: lines.h:37
int nbPoints
Definition: lines.h:32
PluginInfo * goomInfo
Definition: lines.h:42
unsigned int color
Definition: lines.h:33
float param
Definition: lines.h:28
GMUnitPointer * points2
Definition: lines.h:26
float amplitude
Definition: lines.h:30
int IDdest
Definition: lines.h:27
GMUnitPointer * points
Definition: lines.h:25
unsigned int color2
Definition: lines.h:34
float powinc
Definition: lines.h:40
float amplitudeF
Definition: lines.h:29
int screenX
Definition: lines.h:36
float power
Definition: lines.h:39
Definition: lines.h:15
float angle
Definition: lines.h:18
float y
Definition: lines.h:17
float x
Definition: lines.h:16
Definition: goom_plugin_info.h:75
Definition: goom_graphic.h:55