xine-lib: xine-lib-1.2.13/src/post/goom/goom_tools.h File Reference

xine-lib 1.2.13-20230125hg15249

Data Structures | Macros | Typedefs | Functions
goom_tools.h File Reference

Go to the source code of this file.

## Data Structures
struct | _GOOM_RANDOM

## Macros
#define | GOOM_NB_RAND 0x10000

## Typedefs
typedef struct _GOOM_RANDOM | GoomRandom

## Functions
GoomRandom * | goom_random_init (int i)
void | goom_random_free (GoomRandom *grandom)
static int | goom_random (GoomRandom *grandom)
static int | goom_irand (GoomRandom *grandom, int i)
void | goom_random_update_array (GoomRandom *grandom, int numberOfValuesToChange)

## Macro Definition Documentation

## ◆ GOOM_NB_RAND

#define GOOM_NB_RAND 0x10000

Random number generator wrapper for faster random number.

Referenced by goom_random_init().

## Typedef Documentation

## ◆ GoomRandom

typedef struct _GOOM_RANDOM GoomRandom

## Function Documentation

## ◆ goom_irand()

static int goom_irand | ( | GoomRandom * | grandom,
|  | int | i )
| inlinestatic

References _GOOM_RANDOM::array, and _GOOM_RANDOM::pos.

Referenced by addABomb(), choose_a_goom_line(), convolve_apply(), fs_apply(), fs_sound_event_occured(), generateTheWaterFXHorizontalDirectionBuffer(), goom_lines_move(), goom_update(), pretty_move(), and tentacle_update().

## ◆ goom_random()

static int goom_random | ( | GoomRandom * | grandom | ) |
| inlinestatic

References _GOOM_RANDOM::array, and _GOOM_RANDOM::pos.

## ◆ goom_random_free()

void goom_random_free | ( | GoomRandom * | grandom | ) |

Referenced by goom_close().

## ◆ goom_random_init()

GoomRandom * goom_random_init | ( | int | i | ) |

References GOOM_NB_RAND, goom_random_update_array(), and _GOOM_RANDOM::pos.

Referenced by goom_init().

## ◆ goom_random_update_array()

void goom_random_update_array | ( | GoomRandom * | grandom,
|  | int | numberOfValuesToChange )

References _GOOM_RANDOM::array, and _GOOM_RANDOM::pos.

Referenced by goom_random_init().