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
sphere_display.h
Go to the documentation of this file.
1 // -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
2 
3 #ifndef VEGASTRIKE_GFX_RADAR_SPHERE_DISPLAY_H
4 #define VEGASTRIKE_GFX_RADAR_SPHERE_DISPLAY_H
5 
6 #include "sensor.h"
7 #include "radar.h"
8 #include "dual_display.h"
9 
10 namespace Radar
11 {
12 
13 struct ViewArea;
14 
16 {
17 public:
18  SphereDisplay();
19 
20  void Draw(const Sensor& sensor, VSSprite *, VSSprite *);
21 
22 protected:
23  void DrawBackground(const Sensor&, const ViewArea&);
24  void DrawTrack(const Sensor&, const ViewArea&, const Track&, bool negate_z=false);
25  void DrawTargetMarker(const Vector&, float);
26 
27 protected:
28  const float innerSphere;
29  float radarTime;
30 };
31 
32 } // namespace Radar
33 
34 #endif