Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
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
;
51
Material
*
mtl
;
52
VertexSet
*
verts
;
53
Poly
*
polys
;
54
Matrix
*
beams
;
55
Bitmap
*
texture
;
56
57
Matrix
orientation
;
58
};
59
60
#endif QuantumFlash_h
Stars45
QuantumFlash.h
Generated on Thu May 31 2012 16:31:14 for Starshatter_Open by
1.8.1