Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mesh_fx.cpp File Reference
#include "mesh.h"
#include "lin_time.h"

Go to the source code of this file.

Macros

#define MAXLOCALFX   (6)
 

Functions

static void AvLights (float target[4], const float other[4])
 

Variables

static float startpotency = 20
 
static float endpotency = 4
 
static float flickertime = 3.5
 
const float mindamage = .1
 

Macro Definition Documentation

#define MAXLOCALFX   (6)

Definition at line 3 of file mesh_fx.cpp.

Referenced by Mesh::AddDamageFX().

Function Documentation

static void AvLights ( float  target[4],
const float  other[4] 
)
static

Definition at line 8 of file mesh_fx.cpp.

Referenced by MeshFX::MergeLights().

9 {
10  target[0] = .5*(target[0]+other[0]);
11  target[1] = .5*(target[1]+other[1]);
12  target[2] = .5*(target[2]+other[2]);
13  target[3] = .5*(target[3]+other[3]);
14 }

Variable Documentation

float endpotency = 4
static

Definition at line 5 of file mesh_fx.cpp.

Referenced by Mesh::AddDamageFX().

float flickertime = 3.5
static

Definition at line 6 of file mesh_fx.cpp.

Referenced by Mesh::AddDamageFX(), and flickerDamage().

const float mindamage = .1

Definition at line 7 of file mesh_fx.cpp.

Referenced by Mesh::AddDamageFX().

float startpotency = 20
static

Definition at line 4 of file mesh_fx.cpp.

Referenced by Mesh::AddDamageFX().