MythTV  master
Macros | Functions | Variables
tentacle3d.c File Reference
#include <stdlib.h>
#include "v3d.h"
#include "surf3d.h"
#include "goom_tools.h"
#include "goomconfig.h"
Include dependency graph for tentacle3d.c:

Go to the source code of this file.

Macros

#define D   256.0F
 
#define nbgrid   6
 
#define definitionx   15
 
#define definitionz   45
 
#define ShiftRight(_x, _s)   (((_x)<0) ? -(-(_x)>>(_s)) : ((_x)>>(_s)))
 

Functions

void tentacle_free (void)
 
void tentacle_new (void)
 
void tentacle_update (int *buf, int *back, int W, int H, short data[2][512], float rapport, int drawit)
 
static unsigned char lighten (unsigned char value, float power)
 
static void lightencolor (int *col, float power)
 
static int evolutecolor (unsigned int src, unsigned int dest, unsigned int mask, unsigned int incr)
 
static void pretty_move (float lcycle, float *dist, float *dist2, float *rotangle)
 

Variables

static float cycle = 0.0F
 
static grid3dgrille [nbgrid]
 
static float * vals
 

Macro Definition Documentation

◆ D

#define D   256.0F

Definition at line 8 of file tentacle3d.c.

◆ nbgrid

#define nbgrid   6

Definition at line 10 of file tentacle3d.c.

◆ definitionx

#define definitionx   15

Definition at line 11 of file tentacle3d.c.

◆ definitionz

#define definitionz   45

Definition at line 12 of file tentacle3d.c.

◆ ShiftRight

#define ShiftRight (   _x,
  _s 
)    (((_x)<0) ? -(-(_x)>>(_s)) : ((_x)>>(_s)))

Definition at line 83 of file tentacle3d.c.

Function Documentation

◆ tentacle_free()

void tentacle_free ( void  )

Definition at line 23 of file tentacle3d.c.

Referenced by goom_close().

◆ tentacle_new()

void tentacle_new ( void  )

Definition at line 31 of file tentacle3d.c.

Referenced by goom_init().

◆ tentacle_update()

void tentacle_update ( int *  buf,
int *  back,
int  W,
int  H,
short  data[2][512],
float  rapport,
int  drawit 
)

Definition at line 155 of file tentacle3d.c.

Referenced by goom_update().

◆ lighten()

static unsigned char lighten ( unsigned char  value,
float  power 
)
inlinestatic

Definition at line 51 of file tentacle3d.c.

Referenced by lightencolor().

◆ lightencolor()

static void lightencolor ( int *  col,
float  power 
)
static

Definition at line 68 of file tentacle3d.c.

Referenced by tentacle_update().

◆ evolutecolor()

static int evolutecolor ( unsigned int  src,
unsigned int  dest,
unsigned int  mask,
unsigned int  incr 
)
static

Definition at line 86 of file tentacle3d.c.

Referenced by tentacle_update().

◆ pretty_move()

static void pretty_move ( float  lcycle,
float *  dist,
float *  dist2,
float *  rotangle 
)
static

Definition at line 100 of file tentacle3d.c.

Referenced by tentacle_update().

Variable Documentation

◆ cycle

float cycle = 0.0F
static

Definition at line 14 of file tentacle3d.c.

Referenced by tentacle_update().

◆ grille

grid3d* grille[nbgrid]
static

Definition at line 15 of file tentacle3d.c.

Referenced by tentacle_free(), tentacle_new(), and tentacle_update().

◆ vals

float* vals
static