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#include <cstdint>
9
10#include "graphic.h"
11#include "goom_core.h"
12
14{
15 float x;
16 float y;
17 float angle;
18};
19
20// tableau de points
21static const int LINENUMPOINTS { 512 };
22using GMUnitArray = std::array<GMUnitPointer,LINENUMPOINTS>;
23struct GMLine
24{
27 int IDdest;
28 float param;
30 float amplitude;
31
32 uint32_t color;
33 uint32_t color2;
34
37
38 float power;
39 float powinc;
40};
41
42enum GML_TYPE : uint8_t {
43// les ID possibles
45// (param = radius)
46
48// (param = y)
49
51// (param = x)
52};
53
54// les modes couleur possible (si tu mets un autre c'est noir)
55
56enum GML_COLOR : uint8_t {
64};
65
66/* construit un effet de line (une ligne horitontale pour commencer) */
67GMLine *goom_lines_init (int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD);
68
69void goom_lines_switch_to (GMLine * gml, int IDdest, float param, float amplitude, int col);
70
71void goom_lines_set_res (GMLine * gml, int rx, int ry);
72
73void goom_lines_free (GMLine ** gml);
74
75void goom_lines_draw (GMLine * line, const GoomSingleData& data, unsigned int *p);
std::array< int16_t, 512 > GoomSingleData
Definition: goom_core.h:11
void goom_lines_set_res(GMLine *gml, int rx, int ry)
Definition: lines.cpp:99
GMLine * goom_lines_init(int rx, int ry, int IDsrc, float paramS, int coulS, int IDdest, float paramD, int coulD)
Definition: lines.cpp:158
GML_TYPE
Definition: lines.h:42
@ GML_HLINE
Definition: lines.h:47
@ GML_CIRCLE
Definition: lines.h:44
@ GML_VLINE
Definition: lines.h:50
void goom_lines_free(GMLine **gml)
Definition: lines.cpp:191
std::array< GMUnitPointer, LINENUMPOINTS > GMUnitArray
Definition: lines.h:22
static const int LINENUMPOINTS
Definition: lines.h:21
void goom_lines_switch_to(GMLine *gml, int IDdest, float param, float amplitude, int col)
Definition: lines.cpp:146
void goom_lines_draw(GMLine *line, const GoomSingleData &data, unsigned int *p)
Definition: lines.cpp:198
GML_COLOR
Definition: lines.h:56
@ GML_BLACK
Definition: lines.h:63
@ GML_ORANGE_V
Definition: lines.h:59
@ GML_ORANGE_J
Definition: lines.h:60
@ GML_BLEU
Definition: lines.h:62
@ GML_BLEUBLANC
Definition: lines.h:57
@ GML_RED
Definition: lines.h:58
@ GML_VERT
Definition: lines.h:61
Definition: lines.h:24
GMUnitArray points
Definition: lines.h:25
GMUnitArray points2
Definition: lines.h:26
float amplitudeF
Definition: lines.h:29
float param
Definition: lines.h:28
float amplitude
Definition: lines.h:30
float power
Definition: lines.h:38
float powinc
Definition: lines.h:39
uint32_t color
Definition: lines.h:32
int screenY
Definition: lines.h:36
uint32_t color2
Definition: lines.h:33
int IDdest
Definition: lines.h:27
int screenX
Definition: lines.h:35
float y
Definition: lines.h:16
float x
Definition: lines.h:15
float angle
Definition: lines.h:17