Oolite
1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
src
Core
Materials
OOStandaloneAtmosphereGenerator.h
Go to the documentation of this file.
1
/*
2
3
OOStandaloneAtmosphereGenerator.h
4
5
Generator for planet atmospheres when the planet is using a
6
non-generated diffuse map.
7
8
9
Oolite
10
Copyright (C) 2004-2013 Giles C Williams and contributors
11
12
This program is free software; you can redistribute it and/or
13
modify it under the terms of the GNU General Public License
14
as published by the Free Software Foundation; either version 2
15
of the License, or (at your option) any later version.
16
17
This program is distributed in the hope that it will be useful,
18
but WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
GNU General Public License for more details.
21
22
You should have received a copy of the GNU General Public License
23
along with this program; if not, write to the Free Software
24
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25
MA 02110-1301, USA.
26
27
*/
28
29
#import "
OOTextureGenerator.h
"
30
#import "
OOMaths.h
"
31
32
33
typedef
struct
OOStandaloneAtmosphereGeneratorInfo
34
{
35
RANROTSeed
seed
;
36
37
unsigned
width
;
38
unsigned
height
;
39
40
// Atmosphere parameters.
41
float
cloudAlpha
;
42
float
cloudFraction
;
43
FloatRGB
airColor
;
44
FloatRGB
cloudColor
;
45
FloatRGB
paleCloudColor
;
46
47
// Noise generation stuff.
48
float
*
fbmBuffer
;
49
50
uint16_t *
permutations
;
51
52
unsigned
planetAspectRatio
;
53
unsigned
planetScaleOffset
;
54
BOOL
perlin3d
;
55
}
OOStandaloneAtmosphereGeneratorInfo
;
56
57
58
59
@interface
OOStandaloneAtmosphereGenerator
:
OOTextureGenerator
60
{
61
@private
62
OOStandaloneAtmosphereGeneratorInfo
_info
;
63
unsigned
_planetScale
;
64
}
65
66
67
- (id) initWithPlanetInfo:(NSDictionary *)planetInfo;
68
69
+ (
OOTexture
*) planetTextureWithInfo:(NSDictionary *)planetInfo;
70
+ (BOOL) generateAtmosphereTexture:(
OOTexture
**)texture withInfo:(NSDictionary *)planetInfo;
71
72
@end
OOMaths.h
OOStandaloneAtmosphereGeneratorInfo
struct OOStandaloneAtmosphereGeneratorInfo OOStandaloneAtmosphereGeneratorInfo
OOTextureGenerator.h
OOStandaloneAtmosphereGenerator
Definition
OOStandaloneAtmosphereGenerator.h:60
OOStandaloneAtmosphereGenerator::_info
OOStandaloneAtmosphereGeneratorInfo _info
Definition
OOStandaloneAtmosphereGenerator.h:62
OOStandaloneAtmosphereGenerator::_planetScale
unsigned _planetScale
Definition
OOStandaloneAtmosphereGenerator.h:63
OOTextureGenerator
Definition
OOTextureGenerator.h:46
OOTexture
Definition
OOTexture.h:117
FloatRGB
Definition
OOTextureGenerator.h:34
OOStandaloneAtmosphereGeneratorInfo
Definition
OOStandaloneAtmosphereGenerator.h:34
OOStandaloneAtmosphereGeneratorInfo::airColor
FloatRGB airColor
Definition
OOStandaloneAtmosphereGenerator.h:43
OOStandaloneAtmosphereGeneratorInfo::permutations
uint16_t * permutations
Definition
OOStandaloneAtmosphereGenerator.h:50
OOStandaloneAtmosphereGeneratorInfo::cloudColor
FloatRGB cloudColor
Definition
OOStandaloneAtmosphereGenerator.h:44
OOStandaloneAtmosphereGeneratorInfo::perlin3d
BOOL perlin3d
Definition
OOStandaloneAtmosphereGenerator.h:54
OOStandaloneAtmosphereGeneratorInfo::width
unsigned width
Definition
OOStandaloneAtmosphereGenerator.h:37
OOStandaloneAtmosphereGeneratorInfo::fbmBuffer
float * fbmBuffer
Definition
OOStandaloneAtmosphereGenerator.h:48
OOStandaloneAtmosphereGeneratorInfo::cloudFraction
float cloudFraction
Definition
OOStandaloneAtmosphereGenerator.h:42
OOStandaloneAtmosphereGeneratorInfo::paleCloudColor
FloatRGB paleCloudColor
Definition
OOStandaloneAtmosphereGenerator.h:45
OOStandaloneAtmosphereGeneratorInfo::planetAspectRatio
unsigned planetAspectRatio
Definition
OOStandaloneAtmosphereGenerator.h:52
OOStandaloneAtmosphereGeneratorInfo::height
unsigned height
Definition
OOStandaloneAtmosphereGenerator.h:38
OOStandaloneAtmosphereGeneratorInfo::seed
RANROTSeed seed
Definition
OOStandaloneAtmosphereGenerator.h:35
OOStandaloneAtmosphereGeneratorInfo::planetScaleOffset
unsigned planetScaleOffset
Definition
OOStandaloneAtmosphereGenerator.h:53
OOStandaloneAtmosphereGeneratorInfo::cloudAlpha
float cloudAlpha
Definition
OOStandaloneAtmosphereGenerator.h:41
RANROTSeed
Definition
legacy_random.h:58
Generated by
1.12.0