Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
TerrainClouds.h
Go to the documentation of this file.
1
/* Project Starshatter 4.5
2
Destroyer Studios LLC
3
Copyright © 1997-2005. All Rights Reserved.
4
5
SUBSYSTEM: Stars.exe
6
FILE: TerrainClouds.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
A Single Edge Section of a Terrain Object
13
*/
14
15
#ifndef TerrainClouds_h
16
#define TerrainClouds_h
17
18
#include "
Types.h
"
19
#include "
Graphic.h
"
20
#include "
Geometry.h
"
21
#include "
Polygon.h
"
22
23
// +--------------------------------------------------------------------+
24
25
class
Terrain
;
26
class
TerrainRegion
;
27
28
// +--------------------------------------------------------------------+
29
30
class
TerrainClouds
:
public
Graphic
31
{
32
public
:
33
TerrainClouds
(
Terrain
* terr,
int
type
);
34
virtual
~TerrainClouds
();
35
36
virtual
void
Render
(
Video
* video, DWORD flags);
37
virtual
void
Update
();
38
39
// accessors:
40
virtual
int
CollidesWith
(
Graphic
& o) {
return
0; }
41
virtual
bool
Luminous
()
const
{
return
true
; }
42
virtual
bool
Translucent
()
const
{
return
true
; }
43
44
void
Illuminate
(
Color
ambient,
List<Light>
& lights);
45
46
protected
:
47
void
BuildClouds
();
48
49
Terrain
*
terrain
;
50
Vec3
*
mverts
;
51
VertexSet
*
verts
;
52
Poly
*
polys
;
53
Material
mtl_cloud
;
54
Material
mtl_shade
;
55
56
int
type
;
57
int
nbanks
;
58
int
nverts
;
59
int
npolys
;
60
};
61
62
63
#endif TerrainClouds_h
64
Stars45
TerrainClouds.h
Generated on Tue Jun 5 2012 20:47:15 for Starshatter_Open by
1.8.1