Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <sphere_display.h>
Public Member Functions | |
SphereDisplay () | |
void | Draw (const Sensor &sensor, VSSprite *, VSSprite *) |
![]() | |
DualDisplayBase () | |
void | OnPauseBegin () |
void | OnPauseEnd () |
![]() | |
virtual | ~Display () |
virtual void | OnDockEnd () |
virtual void | OnJumpBegin () |
virtual void | OnJumpEnd () |
Protected Member Functions | |
void | DrawBackground (const Sensor &, const ViewArea &) |
void | DrawTrack (const Sensor &, const ViewArea &, const Track &, bool negate_z=false) |
void | DrawTargetMarker (const Vector &, float) |
![]() | |
float | Jitter (float errorOffset, float errorRange) |
void | Jitter (float errorOffset, float errorRange, Vector &position) |
Protected Attributes | |
const float | innerSphere |
float | radarTime |
![]() | |
ViewArea | leftRadar |
ViewArea | rightRadar |
bool | isPaused |
RandomEngine | randomEngine |
RandomDistribution | randomDistribution |
RandomGenerator | randomGenerator |
Definition at line 15 of file sphere_display.h.
Radar::SphereDisplay::SphereDisplay | ( | ) |
Definition at line 35 of file sphere_display.cpp.
|
virtual |
Implements Radar::Display.
Definition at line 41 of file sphere_display.cpp.
References DEPTHTEST, DEPTHWRITE, VSSprite::Draw(), DrawBackground(), DrawTrack(), Radar::Sensor::FindTracksInRange(), GetElapsedTime(), VegaConfig::getVariable(), GFXDisable(), GFXEnable(), GFXPointSize(), Radar::DualDisplayBase::leftRadar, XMLSupport::parse_bool(), radarTime, Radar::DualDisplayBase::rightRadar, Radar::ViewArea::SetSprite(), and vs_config.
|
protected |
Definition at line 190 of file sphere_display.cpp.
References center, g_game, Radar::ViewArea::GetColor(), Radar::Sensor::GetPlayer(), Unit::GetWarpVelocity(), GFXBegin(), GFXColorf(), GFXDisable(), GFXEnable(), GFXEnd(), GFXLINE, GFXLineWidth(), GFXVertexf(), Radar::ViewArea::IsActive(), Radar::ViewArea::Scale(), size, SMOOTH, Vector, game_data_t::x_resolution, and game_data_t::y_resolution.
Referenced by Draw().
Definition at line 170 of file sphere_display.cpp.
References g_game, GFXBegin(), GFXDisable(), GFXEnable(), GFXEnd(), GFXLINE, GFXLineWidth(), GFXVertex3f(), SMOOTH, game_data_t::x_resolution, and game_data_t::y_resolution.
Referenced by DrawTrack().
|
protected |
Definition at line 87 of file sphere_display.cpp.
References GFXColor::a, DrawTargetMarker(), error, Radar::Track::ExplodingProgress(), Radar::Sensor::GetColor(), anonymous_namespace{bubble_display.cpp}::GetDangerRate(), Radar::Sensor::GetMaxRange(), Radar::Track::GetPosition(), Radar::Track::GetType(), VegaConfig::getVariable(), GFXBegin(), GFXColorf(), GFXEnd(), GFXPOINT, GFXPointSize(), GFXVertexf(), Radar::Track::HasActiveECM(), Radar::Sensor::IdentifyThreat(), innerSphere, Radar::Sensor::InsideNebula(), Radar::ViewArea::IsActive(), Radar::Track::IsExploding(), Radar::Sensor::IsTracking(), Radar::DualDisplayBase::Jitter(), Radar::Track::Type::Nebula, XMLSupport::parse_bool(), radarTime, Radar::ViewArea::Scale(), Radar::Sensor::UseThreatAssessment(), Vector, and vs_config.
Referenced by Draw().
|
protected |
Definition at line 28 of file sphere_display.h.
Referenced by DrawTrack().
|
protected |
Definition at line 29 of file sphere_display.h.
Referenced by Draw(), and DrawTrack().