xine-lib: xine-lib-1.2.13/src/post/goom/lines.h Source File

xine-lib 1.2.13-20230125hg15249

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
14 struct _GMUNITPOINTER
15{
16 float x;
17 float y;
18 float angle;
19};
20
21/* tableau de points */
22 struct _GMLINE
23{
24
25 GMUnitPointer *points;
26 GMUnitPointer *points2;
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 */
34 guint32 color2;
35
36 int screenX;
37 int screenY;
38
39 float power;
40 float powinc;
41
42 PluginInfo *goomInfo;
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
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 */
goom_config.h
guint32
#define guint32
Definition goom_config.h:28
gint16
#define gint16
Definition goom_config.h:30
goom_graphic.h
goom_typedefs.h
goom_lines_set_res
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition lines.c:107
goom_lines_switch_to
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int modeCoul)
Definition lines.c:157
goom_lines_free
void goom_lines_free(GMLine **gml)
Definition lines.c:203
goom_lines_init
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
goom_lines_draw
void goom_lines_draw(PluginInfo *plugInfo, GMLine *gml, signed short int data[512], Pixel *p)
Definition lines.c:211
_GMLINE
Definition lines.h:23
_GMLINE::screenY
int screenY
Definition lines.h:37
_GMLINE::nbPoints
int nbPoints
Definition lines.h:32
_GMLINE::goomInfo
PluginInfo * goomInfo
Definition lines.h:42
_GMLINE::color
unsigned int color
Definition lines.h:33
_GMLINE::param
float param
Definition lines.h:28
_GMLINE::points2
GMUnitPointer * points2
Definition lines.h:26
_GMLINE::amplitude
float amplitude
Definition lines.h:30
_GMLINE::IDdest
int IDdest
Definition lines.h:27
_GMLINE::points
GMUnitPointer * points
Definition lines.h:25
_GMLINE::color2
unsigned int color2
Definition lines.h:34
_GMLINE::powinc
float powinc
Definition lines.h:40
_GMLINE::amplitudeF
float amplitudeF
Definition lines.h:29
_GMLINE::screenX
int screenX
Definition lines.h:36
_GMLINE::power
float power
Definition lines.h:39
_GMUNITPOINTER
Definition lines.h:15
_GMUNITPOINTER::angle
float angle
Definition lines.h:18
_GMUNITPOINTER::y
float y
Definition lines.h:17
_GMUNITPOINTER::x
float x
Definition lines.h:16
_PLUGIN_INFO
Definition goom_plugin_info.h:75
_PIXEL
Definition goom_graphic.h:55