00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "graphic.h"
00010 #include "goomconfig.h"
00011
00012 typedef struct _GMUNITPOINTER
00013 {
00014 float x;
00015 float y;
00016 float angle;
00017 } GMUnitPointer;
00018
00019
00020 typedef struct _GMLINE
00021 {
00022 GMUnitPointer *points;
00023 GMUnitPointer *points2;
00024 int IDdest;
00025 float param;
00026 float amplitudeF;
00027 float amplitude;
00028
00029 int nbPoints;
00030 guint32 color;
00031 guint32 color2;
00032
00033 int screenX;
00034 int screenY;
00035
00036 float power;
00037 float powinc;
00038 } GMLine;
00039
00040
00041 #define GML_CIRCLE 0
00042
00043
00044 #define GML_HLINE 1
00045
00046
00047 #define GML_VLINE 2
00048
00049
00050
00051
00052 #define GML_BLEUBLANC 0
00053 #define GML_RED 1
00054 #define GML_ORANGE_V 2
00055 #define GML_ORANGE_J 3
00056 #define GML_VERT 4
00057 #define GML_BLEU 5
00058 #define GML_BLACK 6
00059
00060
00061 GMLine *goom_lines_init (int rx, int ry, int IDsrc, float paramS, int modeCoulSrc, int IDdest, float paramD, int modeCoulDest);
00062
00063 void goom_lines_switch_to (GMLine * gml, int IDdest, float param, float amplitude, int modeCoul);
00064
00065 void goom_lines_set_res (GMLine * gml, int rx, int ry);
00066
00067 void goom_lines_free (GMLine ** gml);
00068
00069 void goom_lines_draw (GMLine * gml, gint16 data[512], unsigned int *p);