xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Typedefs | Functions | Variables
flying_stars_fx.c File Reference
#include "goom_fx.h"
#include "goom_plugin_info.h"
#include "goom_tools.h"
#include "mathtools.h"

Data Structures

struct  _FS_STAR
 
struct  _FS_DATA
 

Macros

#define NCOL   15
 
#define FIREWORKS_FX   0
 
#define RAIN_FX   1
 
#define FOUNTAIN_FX   2
 
#define LAST_FX   3
 

Typedefs

typedef struct _FS_STAR Star
 
typedef struct _FS_DATA FSData
 

Functions

static void fs_init (VisualFX *_this, PluginInfo *info)
 
static void fs_free (VisualFX *_this)
 
static void addABomb (FSData *fs, int mx, int my, float radius, float vage, float gravity, PluginInfo *info)
 
static void updateStar (Star *s)
 
static void fs_sound_event_occured (VisualFX *_this, PluginInfo *info)
 
static void fs_apply (VisualFX *_this, Pixel *src, Pixel *dest, PluginInfo *info)
 
VisualFX flying_star_create (void)
 

Variables

static const int colval []
 

Macro Definition Documentation

◆ FIREWORKS_FX

#define FIREWORKS_FX   0

Referenced by fs_init(), and fs_sound_event_occured().

◆ FOUNTAIN_FX

#define FOUNTAIN_FX   2

Referenced by fs_sound_event_occured().

◆ LAST_FX

#define LAST_FX   3

Referenced by fs_apply().

◆ NCOL

#define NCOL   15

Referenced by fs_apply().

◆ RAIN_FX

#define RAIN_FX   1

Referenced by fs_sound_event_occured().

Typedef Documentation

◆ FSData

typedef struct _FS_DATA FSData

◆ Star

typedef struct _FS_STAR Star

Function Documentation

◆ addABomb()

static void addABomb ( FSData * fs,
int mx,
int my,
float radius,
float vage,
float gravity,
PluginInfo * info )
static

◆ flying_star_create()

VisualFX flying_star_create ( void )

References fs_apply(), fs_free(), fs_init(), and _VISUAL_FX::init.

Referenced by goom_init().

◆ fs_apply()

static void fs_apply ( VisualFX * _this,
Pixel * src,
Pixel * dest,
PluginInfo * info )
static

◆ fs_free()

static void fs_free ( VisualFX * _this)
static

◆ fs_init()

static void fs_init ( VisualFX * _this,
PluginInfo * info )
static

◆ fs_sound_event_occured()

static void fs_sound_event_occured ( VisualFX * _this,
PluginInfo * info )
static

◆ updateStar()

static void updateStar ( Star * s)
static

Met a jour la position et vitesse d'une particule.

References _FS_STAR::age, _FS_STAR::ax, _FS_STAR::ay, _FS_STAR::vage, _FS_STAR::vx, _FS_STAR::vy, _FS_STAR::x, and _FS_STAR::y.

Referenced by fs_apply().

Variable Documentation

◆ colval

const int colval[]
static
Initial value:
= {
0x1416181a,
0x1419181a,
0x141f181a,
0x1426181a,
0x142a181a,
0x142f181a,
0x1436181a,
0x142f1819,
0x14261615,
0x13201411,
0x111a100a,
0x0c180508,
0x08100304,
0x00050101,
0x0
}

Referenced by fs_apply().