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
21struct GMLine
22{
25 int IDdest;
26 float param;
28 float amplitude;
29
33
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) */
62GMLine *goom_lines_init (int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD);
63
64void goom_lines_switch_to (GMLine * gml, int IDdest, float param, float amplitude, int col);
65
66void goom_lines_set_res (GMLine * gml, int rx, int ry);
67
68void goom_lines_free (GMLine ** gml);
69
70void goom_lines_draw (GMLine * line, const GoomSingleData& data, unsigned int *p);
std::array< int16_t, 512 > GoomSingleData
Definition: goom_core.h:12
#define guint32
Definition: goomconfig.h:35
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition: lines.cpp:95
GMLine * goom_lines_init(int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD)
Definition: lines.cpp:154
void goom_lines_free(GMLine **gml)
Definition: lines.cpp:191
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int col)
Definition: lines.cpp:142
void goom_lines_draw(GMLine *line, const GoomSingleData &data, unsigned int *p)
Definition: lines.cpp:200
Definition: lines.h:22
int nbPoints
Definition: lines.h:30
GMUnitPointer * points2
Definition: lines.h:24
float amplitudeF
Definition: lines.h:27
float param
Definition: lines.h:26
float amplitude
Definition: lines.h:28
float power
Definition: lines.h:37
float powinc
Definition: lines.h:38
int screenY
Definition: lines.h:35
guint32 color2
Definition: lines.h:32
GMUnitPointer * points
Definition: lines.h:23
int IDdest
Definition: lines.h:25
int screenX
Definition: lines.h:34
guint32 color
Definition: lines.h:31
float y
Definition: lines.h:16
float x
Definition: lines.h:15
float angle
Definition: lines.h:17