MythTV  master
lines.h
Go to the documentation of this file.
1 /*
2  * lines.h
3  * iGoom
4  *
5  * Created by guillaum on Tue Aug 14 2001.
6  * Copyright (c) 2001 ios. All rights reserved.
7  */
8 
9 #include "graphic.h"
10 #include "goomconfig.h"
11 #include "goom_core.h"
12 
14 {
15  float x;
16  float y;
17  float angle;
18 };
19 
20 // tableau de points
21 struct GMLine
22 {
25  int IDdest;
26  float param;
27  float amplitudeF;
28  float amplitude;
29 
30  int nbPoints;
33 
34  int screenX;
35  int screenY;
36 
37  float power;
38  float powinc;
39 };
40 
41 // les ID possibles
42 #define GML_CIRCLE 0
43 // (param = radius)
44 
45 #define GML_HLINE 1
46 // (param = y)
47 
48 #define GML_VLINE 2
49 // (param = x)
50 
51 // les modes couleur possible (si tu mets un autre c'est noir)
52 
53 #define GML_BLEUBLANC 0
54 #define GML_RED 1
55 #define GML_ORANGE_V 2
56 #define GML_ORANGE_J 3
57 #define GML_VERT 4
58 #define GML_BLEU 5
59 #define GML_BLACK 6
60 
61 /* construit un effet de line (une ligne horitontale pour commencer) */
62 GMLine *goom_lines_init (int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD);
63 
64 void goom_lines_switch_to (GMLine * gml, int IDdest, float param, float amplitude, int col);
65 
66 void goom_lines_set_res (GMLine * gml, int rx, int ry);
67 
68 void goom_lines_free (GMLine ** gml);
69 
70 void goom_lines_draw (GMLine * line, const GoomSingleData& data, unsigned int *p);
GoomSingleData
std::array< int16_t, 512 > GoomSingleData
Definition: goom_core.h:11
graphic.h
GMLine::points
GMUnitPointer * points
Definition: lines.h:23
GMLine::IDdest
int IDdest
Definition: lines.h:25
goom_lines_draw
void goom_lines_draw(GMLine *line, const GoomSingleData &data, unsigned int *p)
Definition: lines.cpp:201
goomconfig.h
GMUnitPointer::angle
float angle
Definition: lines.h:17
GMLine::param
float param
Definition: lines.h:26
goom_lines_set_res
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition: lines.cpp:96
goom_lines_free
void goom_lines_free(GMLine **gml)
Definition: lines.cpp:192
GMLine::power
float power
Definition: lines.h:37
GMUnitPointer::x
float x
Definition: lines.h:15
hardwareprofile.config.p
p
Definition: config.py:33
goom_core.h
GMLine::screenX
int screenX
Definition: lines.h:34
goom_lines_init
GMLine * goom_lines_init(int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD)
Definition: lines.cpp:155
GMLine::amplitude
float amplitude
Definition: lines.h:28
GMLine
Definition: lines.h:21
GMLine::amplitudeF
float amplitudeF
Definition: lines.h:27
GMUnitPointer
Definition: lines.h:13
GMLine::screenY
int screenY
Definition: lines.h:35
goom_lines_switch_to
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int col)
Definition: lines.cpp:143
GMLine::color
guint32 color
Definition: lines.h:31
GMUnitPointer::y
float y
Definition: lines.h:16
guint32
#define guint32
Definition: goomconfig.h:35
GMLine::powinc
float powinc
Definition: lines.h:38
GMLine::points2
GMUnitPointer * points2
Definition: lines.h:24
GMLine::nbPoints
int nbPoints
Definition: lines.h:30
GMLine::color2
guint32 color2
Definition: lines.h:32