Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <atmosphere.h>
Classes | |
struct | Parameters |
Public Member Functions | |
Atmosphere (const Parameters ¶ms) | |
~Atmosphere () | |
const Parameters & | parameters () |
void | SetParameters (const Parameters ¶ms) |
void | Update (const QVector &position, const Matrix &tmatrix) |
void | Draw () |
void | SetMatricesAndDraw (const QVector &position, const Matrix tmatrix) |
Static Public Member Functions | |
static void | ProcessDrawQueue () |
static void | DrawAtmospheres () |
Definition at line 7 of file atmosphere.h.
Atmosphere::Atmosphere | ( | const Parameters & | params) |
Definition at line 33 of file atmosphere.cpp.
References M_PI, ONE, Atmosphere::Parameters::radius, and ZERO.
Atmosphere::~Atmosphere | ( | ) |
void Atmosphere::Draw | ( | ) |
Definition at line 146 of file atmosphere.cpp.
References a, CopyMatrix(), DEPTHWRITE, Mesh::DrawNow(), Matrix::getQ(), Matrix::getR(), GFXDeleteLight(), GFXDisable(), GFXDisableLight(), GFXFALSE, GFXLoadMatrixModel(), MultMatrix(), QVector, Matrix::r, Mesh::SetMaterial(), TEXTURE1, Update(), and Vector.
|
static |
Definition at line 187 of file atmosphere.cpp.
const Atmosphere::Parameters & Atmosphere::parameters | ( | ) |
Definition at line 45 of file atmosphere.cpp.
|
static |
Definition at line 134 of file atmosphere.cpp.
References DEPTHWRITE, GFXDisable(), GFXEnable(), LIGHTING, TEXTURE0, and TEXTURE1.
Definition at line 127 of file atmosphere.cpp.
References CopyMatrix().
void Atmosphere::SetParameters | ( | const Parameters & | params) |
Definition at line 50 of file atmosphere.cpp.
Definition at line 55 of file atmosphere.cpp.
References _Universe, a, UniverseUtil::acos(), Universe::activeStarSystem(), AMBIENT, ATTENUATE, UnitCollection::createIterator(), DIFFUSE, StarSystem::getUnitList(), GFXCreateLight(), GFXEnableLight(), Atmosphere::Parameters::high_ambient_color, Atmosphere::Parameters::high_color, InvTransformNormal(), Unit::isUnit(), Atmosphere::Parameters::low_ambient_color, Atmosphere::Parameters::low_color, PI, PLANETPTR, POSITION, primary, QVector, Atmosphere::Parameters::radius, Rotate(), GFXLight::SetProperties(), and Transform().
Referenced by Draw().