Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
lightning.hpp File Reference

Go to the source code of this file.

Classes

struct  lightningrenderer
 

Macros

#define MAXLIGHTNINGSTEPS   64
 
#define LIGHTNINGSTEP   8
 

Functions

static void calclightningjitter (int frame)
 
static void setuplightning ()
 
static void renderlightning (Texture *tex, const vec &o, const vec &d, float sz)
 

Variables

int lnjitterx [2][MAXLIGHTNINGSTEPS]
 
int lnjittery [2][MAXLIGHTNINGSTEPS]
 
int lnjitterframe = 0
 
int lastlnjitter = 0
 
static lightningrenderer lightnings
 

Macro Definition Documentation

#define LIGHTNINGSTEP   8

Referenced by renderlightning().

#define MAXLIGHTNINGSTEPS   64

Function Documentation

static void calclightningjitter ( int  frame)
static
static void renderlightning ( Texture tex,
const vec o,
const vec d,
float  sz 
)
static
static void setuplightning ( )
static

Variable Documentation

int lastlnjitter = 0

Referenced by renderlightning(), and setuplightning().

lightningrenderer lightnings
static
int lnjitterframe = 0
int lnjitterx[2][MAXLIGHTNINGSTEPS]
int lnjittery[2][MAXLIGHTNINGSTEPS]