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
beam.cpp File Reference
#include "vegastrike.h"
#include <vector>
#include "beam.h"
#include "unit_generic.h"
#include "gfx/aux_texture.h"
#include "gfx/decalqueue.h"
#include "audiolib.h"
#include "configxml.h"
#include "images.h"

Go to the source code of this file.

Classes

struct  BeamDrawContext
 

Functions

void AdjustMatrixToTrackTarget (Matrix &mat, const Vector &vel, Unit *target, float speed, bool lead, float cone)
 

Variables

static DecalQueue beamdecals
 
static vector< vector
< BeamDrawContext > > 
beamdrawqueue
 

Function Documentation

void AdjustMatrixToTrackTarget ( Matrix mat,
const Vector vel,
Unit target,
float  speed,
bool  lead,
float  cone 
)

Definition at line 107 of file mount.cpp.

References AdjustMatrix().

Referenced by Beam::Draw().

108 {
109  AdjustMatrix( mat, velocity, target, speed, lead, cone );
110 }

Variable Documentation

DecalQueue beamdecals
static

Definition at line 23 of file beam.cpp.

vector< vector< BeamDrawContext > > beamdrawqueue
static

Definition at line 24 of file beam.cpp.

Referenced by Beam::Beam(), Beam::Draw(), and Beam::ProcessDrawQueue().