Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "star.h"
#include "ani_texture.h"
#include <assert.h>
#include "vegastrike.h"
#include "vs_globals.h"
#include "gfx/camera.h"
#include "gfx/cockpit.h"
#include "config_xml.h"
#include "lin_time.h"
#include "galaxy_xml.h"
#include <GL/gl.h>
Go to the source code of this file.
Classes | |
class | StarIter |
Namespaces | |
StarSystemGent | |
Constant Groups | |
StarSystemGent | |
Macros | |
#define | SINX 1 |
#define | SINY 2 |
#define | SINZ 4 |
Functions | |
unsigned int | NumStarsInGalaxy () |
static void | saturate (float &r, float &g, float &b) |
bool | computeStarColor (float &r, float &g, float &b, Vector luminmax, float distance, float maxdistance) |
GFXColor | StarSystemGent::getStarColorFromRadius (float radius) |
static GFXColorVertex * | AllocVerticesForSystem (std::string our_system_name, float spread, int *num, int repetition) |
static void | upd (double &a, double &b, double &c, double &d, double &e, double &f, double &g, double &h, double &i, const double cp, const float spread) |
static Vector | GetConstVertex (const GFXColorVertex &c) |
Variables | |
bool | isVista |
|
static |
Definition at line 140 of file star.cpp.
References _Universe, GFXColorVertex::a, b, GFXColor::b, GFXColorVertex::b, computeStarColor(), StarIter::Done(), float, GFXColor::g, GFXColorVertex::g, g, StarIter::Get(), Universe::getGalaxyProperty(), StarSystemGent::getStarColorFromRadius(), VegaConfig::getVariable(), GFXColorVertex::i, i, j, GFXColorVertex::j, GFXColorVertex::k, NumStarsInGalaxy(), XMLSupport::parse_float(), GFXColor::r, GFXColorVertex::r, UniverseUtil::sqrt(), Vector, vs_config, VSFileSystem::vs_fprintf(), x, GFXColorVertex::x, y, GFXColorVertex::y, z, and GFXColorVertex::z.
Referenced by PointStarVlist::PointStarVlist(), and SpriteStarVlist::SpriteStarVlist().
bool computeStarColor | ( | float & | r, |
float & | g, | ||
float & | b, | ||
Vector | luminmax, | ||
float | distance, | ||
float | maxdistance | ||
) |
Definition at line 101 of file star.cpp.
References VegaConfig::getVariable(), UniverseUtil::log(), XMLSupport::parse_float(), saturate(), and vs_config.
Referenced by AllocVerticesForSystem().
|
static |
Definition at line 585 of file star.cpp.
References Vector, GFXColorVertex::x, GFXColorVertex::y, and GFXColorVertex::z.
Referenced by SpriteStarVlist::SpriteStarVlist().
unsigned int NumStarsInGalaxy | ( | ) |
Definition at line 23 of file star.cpp.
References _Universe, e, Universe::getGalaxy(), GalaxyXML::SGalaxy::getHeirarchy(), and i.
Referenced by AllocVerticesForSystem().
Definition at line 86 of file star.cpp.
References VegaConfig::getVariable(), XMLSupport::parse_float(), and vs_config.
Referenced by computeStarColor(), and GFXSetOptimalIntensity().
|
static |