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

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)
 
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)
 
void tentacle_update (int *buf, int *back, int W, int H, GoomDualData &data, float rapport, int drawit)
 

Variables

static float cycle = 0.0F
 
static std::array< grid3d *, nbgridgrille
 
static float * vals
 

Macro Definition Documentation

◆ D

#define D   256.0F

Definition at line 10 of file tentacle3d.cpp.

◆ nbgrid

#define nbgrid   6

Definition at line 12 of file tentacle3d.cpp.

◆ definitionx

#define definitionx   15

Definition at line 13 of file tentacle3d.cpp.

◆ definitionz

#define definitionz   45

Definition at line 14 of file tentacle3d.cpp.

◆ ShiftRight

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

Definition at line 69 of file tentacle3d.cpp.

Function Documentation

◆ tentacle_free()

void tentacle_free ( void  )

Definition at line 20 of file tentacle3d.cpp.

Referenced by goom_close().

◆ tentacle_new()

void tentacle_new ( void  )

Definition at line 27 of file tentacle3d.cpp.

Referenced by goom_init().

◆ lighten()

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

Definition at line 41 of file tentacle3d.cpp.

Referenced by lightencolor().

◆ lightencolor()

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

Definition at line 56 of file tentacle3d.cpp.

Referenced by tentacle_update().

◆ evolutecolor()

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

Definition at line 72 of file tentacle3d.cpp.

Referenced by tentacle_update().

◆ pretty_move()

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

Definition at line 86 of file tentacle3d.cpp.

Referenced by tentacle_update().

◆ tentacle_update()

void tentacle_update ( int *  buf,
int *  back,
int  W,
int  H,
GoomDualData data,
float  rapport,
int  drawit 
)

Definition at line 140 of file tentacle3d.cpp.

Referenced by goom_update().

Variable Documentation

◆ cycle

float cycle = 0.0F
static

Definition at line 16 of file tentacle3d.cpp.

Referenced by tentacle_update().

◆ grille

std::array<grid3d *,nbgrid> grille
static

Definition at line 17 of file tentacle3d.cpp.

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

◆ vals

float* vals
static