Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QuantumFlash.h
Go to the documentation of this file.
1 /* Project Starshatter 4.5
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Stars.exe
6  FILE: QuantumFlash.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Quantum Warp Out special effect class
13 */
14 
15 #ifndef QuantumFlash_h
16 #define QuantumFlash_h
17 
18 #include "Types.h"
19 #include "Geometry.h"
20 #include "Graphic.h"
21 #include "Polygon.h"
22 #include "SimObject.h"
23 
24 // +--------------------------------------------------------------------+
25 
26 class QuantumFlash : public Graphic
27 {
28 public:
29  QuantumFlash();
30  virtual ~QuantumFlash();
31 
32  // operations
33  virtual void Render(Video* video, DWORD flags);
34 
35  // accessors / mutators
36  virtual void SetOrientation(const Matrix& o);
37  void SetDirection(const Point& v);
38  void SetEndPoints(const Point& from, const Point& to);
39 
40  double Shade() const { return shade; }
41  void SetShade(double s);
42 
43 protected:
44  void UpdateVerts(const Point& cam_pos);
45 
46  double length;
47  double width;
48  double shade;
49 
50  int npolys, nverts;
56 
58 };
59 
60 #endif QuantumFlash_h