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 
13 {
14  float x;
15  float y;
16  float angle;
17 };
18 
19 // tableau de points
20 struct GMLine
21 {
24  int IDdest;
25  float param;
26  float amplitudeF;
27  float amplitude;
28 
29  int nbPoints;
32 
33  int screenX;
34  int screenY;
35 
36  float power;
37  float powinc;
38 };
39 
40 // les ID possibles
41 #define GML_CIRCLE 0
42 // (param = radius)
43 
44 #define GML_HLINE 1
45 // (param = y)
46 
47 #define GML_VLINE 2
48 // (param = x)
49 
50 // les modes couleur possible (si tu mets un autre c'est noir)
51 
52 #define GML_BLEUBLANC 0
53 #define GML_RED 1
54 #define GML_ORANGE_V 2
55 #define GML_ORANGE_J 3
56 #define GML_VERT 4
57 #define GML_BLEU 5
58 #define GML_BLACK 6
59 
60 /* construit un effet de line (une ligne horitontale pour commencer) */
61 GMLine *goom_lines_init (int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD);
62 
63 void goom_lines_switch_to (GMLine * gml, int IDdest, float param, float amplitude, int col);
64 
65 void goom_lines_set_res (GMLine * gml, int rx, int ry);
66 
67 void goom_lines_free (GMLine ** gml);
68 
69 void goom_lines_draw (GMLine * line, const gint16 data[512], unsigned int *p);
graphic.h
GMLine::points
GMUnitPointer * points
Definition: lines.h:22
GMLine::IDdest
int IDdest
Definition: lines.h:24
goomconfig.h
gint16
#define gint16
Definition: goomconfig.h:37
GMUnitPointer::angle
float angle
Definition: lines.h:16
GMLine::param
float param
Definition: lines.h:25
goom_lines_set_res
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition: lines.cpp:97
goom_lines_free
void goom_lines_free(GMLine **gml)
Definition: lines.cpp:193
GMLine::power
float power
Definition: lines.h:36
GMUnitPointer::x
float x
Definition: lines.h:14
hardwareprofile.config.p
p
Definition: config.py:33
goom_lines_draw
void goom_lines_draw(GMLine *line, const gint16 data[512], unsigned int *p)
Definition: lines.cpp:202
GMLine::screenX
int screenX
Definition: lines.h:33
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:156
GMLine::amplitude
float amplitude
Definition: lines.h:27
GMLine
Definition: lines.h:21
GMLine::amplitudeF
float amplitudeF
Definition: lines.h:26
GMUnitPointer
Definition: lines.h:13
GMLine::screenY
int screenY
Definition: lines.h:34
goom_lines_switch_to
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int col)
Definition: lines.cpp:144
GMLine::color
guint32 color
Definition: lines.h:30
GMUnitPointer::y
float y
Definition: lines.h:15
guint32
#define guint32
Definition: goomconfig.h:35
GMLine::powinc
float powinc
Definition: lines.h:37
GMLine::points2
GMUnitPointer * points2
Definition: lines.h:23
GMLine::nbPoints
int nbPoints
Definition: lines.h:29
GMLine::color2
guint32 color2
Definition: lines.h:31