MythTV  master
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.

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 ShiftRight (int x, int s)
 
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 constexpr float D { 256.0F }
 
static constexpr size_t nbgrid { 6 }
 
static constexpr int8_t definitionx { 15 }
 
static constexpr int8_t definitionz { 45 }
 
static float cycle = 0.0F
 
static std::array< grid3d *, nbgridgrille
 
static float * vals
 

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().

◆ ShiftRight()

static int ShiftRight ( int  x,
int  s 
)
inlinestatic

Definition at line 69 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

◆ D

constexpr float D { 256.0F }
staticconstexpr

Definition at line 10 of file tentacle3d.cpp.

Referenced by pretty_move().

◆ nbgrid

constexpr size_t nbgrid { 6 }
staticconstexpr

Definition at line 12 of file tentacle3d.cpp.

◆ definitionx

constexpr int8_t definitionx { 15 }
staticconstexpr

Definition at line 13 of file tentacle3d.cpp.

Referenced by tentacle_new(), and tentacle_update().

◆ definitionz

constexpr int8_t definitionz { 45 }
staticconstexpr

Definition at line 14 of file tentacle3d.cpp.

Referenced by tentacle_new().

◆ 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