Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <background.h>
Classes | |
struct | BackgroundClone |
Public Member Functions | |
Background (const char *file, int numstars, float spread, const std::string &starfilename, const GFXColor &color, bool degamma) | |
~Background () | |
void | EnableBG (bool) |
void | Draw () |
BackgroundClone | Cache () |
Definition at line 29 of file background.h.
Background::Background | ( | const char * | file, |
int | numstars, | ||
float | spread, | ||
const std::string & | starfilename, | ||
const GFXColor & | color, | ||
bool | degamma | ||
) |
Definition at line 35 of file background.cpp.
References VegaConfig::getVariable(), GFXTRUE, Texture::LoadSuccess(), VSFileSystem::LookForFile(), MIPMAP, VSFileSystem::Ok, XMLSupport::parse_bool(), XMLSupport::parse_float(), XMLSupport::parse_int(), BaseUtil::Texture(), TEXTURE2D, TEXTURE_2D, VSFileSystem::TextureFile, and vs_config.
Background::~Background | ( | ) |
Definition at line 124 of file background.cpp.
Background::BackgroundClone Background::Cache | ( | ) |
Definition at line 145 of file background.cpp.
References Background::BackgroundClone::backups, Texture::Clone(), i, Mesh::numTextures(), and Mesh::texture().
Referenced by NetClient::Respawn(), and Cockpit::Update().
void Background::Draw | ( | ) |
Definition at line 174 of file background.cpp.
References _Universe, Universe::AccessCamera(), Universe::activateLightMap(), Texture::boundSizeX, Texture::boundSizeY, CLAMP, CUBEMAP, DEPTHTEST, DEPTHWRITE, StarVlist::DrawAll(), Mesh::DrawNow(), gl_options_t::ext_clamp_to_edge, Camera::GetAngularVelocity(), Universe::getLightMap(), VegaConfig::getVariable(), Camera::GetVelocity(), GFXActiveTexture(), GFXBegin(), GFXBlendMode(), GFXCenterCamera(), GFXClear(), GFXColorf(), GFXDisable(), GFXEnable(), GFXEnd(), GFXFALSE, GFXLoadMatrixModel(), GFXMODULATETEXTURE, GFXQUAD, GFXTextureAddressMode(), GFXTextureCoordGenMode(), GFXTextureEnv(), GFXToggleTexture(), GFXTRUE, gl_options, identity_matrix(), LIGHTING, Texture::MakeActive(), Texture::maxtcoord, Texture::mintcoord, gl_options_t::Multitexture, NO_GEN, Texture::numLayers(), Texture::numPasses(), ONE, XMLSupport::parse_float(), QVector, Texture::SetupPass(), SRCCOLOR, t1(), TEXTURE0, TEXTURE1, VERTEX, vs_config, WRAP, and ZERO.
Referenced by GameStarSystem::Draw().
void Background::EnableBG | ( | bool | tf) |
Definition at line 120 of file background.cpp.
Referenced by CockpitKeys::Inside().