Oolite
Loading...
Searching...
No Matches
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 "
OOMaths.h
"
30
#import "
OOTextureGenerator.h
"
31
32
typedef
struct
OOStandaloneAtmosphereGeneratorInfo
{
33
RANROTSeed
seed
;
34
35
unsigned
width
;
36
unsigned
height
;
37
38
// Atmosphere parameters.
39
float
cloudAlpha
;
40
float
cloudFraction
;
41
FloatRGB
airColor
;
42
FloatRGB
cloudColor
;
43
FloatRGB
paleCloudColor
;
44
45
// Noise generation stuff.
46
float
*
fbmBuffer
;
47
48
uint16_t*
permutations
;
49
50
unsigned
planetAspectRatio
;
51
unsigned
planetScaleOffset
;
52
BOOL
perlin3d
;
53
}
OOStandaloneAtmosphereGeneratorInfo
;
54
55
@interface
OOStandaloneAtmosphereGenerator
:
OOTextureGenerator
{
56
@private
57
OOStandaloneAtmosphereGeneratorInfo
_info
;
58
unsigned
_planetScale
;
59
}
60
61
- (id)initWithPlanetInfo:(NSDictionary*)planetInfo;
62
63
+ (
OOTexture
*)planetTextureWithInfo:(NSDictionary*)planetInfo;
64
+ (BOOL)generateAtmosphereTexture:(
OOTexture
**)texture withInfo:(NSDictionary*)planetInfo;
65
66
@end
OOMaths.h
OOTextureGenerator.h
OOStandaloneAtmosphereGenerator
Definition
OOStandaloneAtmosphereGenerator.h:55
OOStandaloneAtmosphereGenerator::_info
OOStandaloneAtmosphereGeneratorInfo _info
Definition
OOStandaloneAtmosphereGenerator.h:57
OOStandaloneAtmosphereGenerator::_planetScale
unsigned _planetScale
Definition
OOStandaloneAtmosphereGenerator.h:58
OOTextureGenerator
Definition
OOTextureGenerator.h:43
OOTexture
Definition
OOTexture.h:109
FloatRGB
Definition
OOTextureGenerator.h:33
OOStandaloneAtmosphereGeneratorInfo
Definition
OOStandaloneAtmosphereGenerator.h:32
OOStandaloneAtmosphereGeneratorInfo::airColor
FloatRGB airColor
Definition
OOStandaloneAtmosphereGenerator.h:41
OOStandaloneAtmosphereGeneratorInfo::permutations
uint16_t * permutations
Definition
OOStandaloneAtmosphereGenerator.h:48
OOStandaloneAtmosphereGeneratorInfo::cloudColor
FloatRGB cloudColor
Definition
OOStandaloneAtmosphereGenerator.h:42
OOStandaloneAtmosphereGeneratorInfo::perlin3d
BOOL perlin3d
Definition
OOStandaloneAtmosphereGenerator.h:52
OOStandaloneAtmosphereGeneratorInfo::width
unsigned width
Definition
OOStandaloneAtmosphereGenerator.h:35
OOStandaloneAtmosphereGeneratorInfo::fbmBuffer
float * fbmBuffer
Definition
OOStandaloneAtmosphereGenerator.h:46
OOStandaloneAtmosphereGeneratorInfo::cloudFraction
float cloudFraction
Definition
OOStandaloneAtmosphereGenerator.h:40
OOStandaloneAtmosphereGeneratorInfo::paleCloudColor
FloatRGB paleCloudColor
Definition
OOStandaloneAtmosphereGenerator.h:43
OOStandaloneAtmosphereGeneratorInfo::planetAspectRatio
unsigned planetAspectRatio
Definition
OOStandaloneAtmosphereGenerator.h:50
OOStandaloneAtmosphereGeneratorInfo::height
unsigned height
Definition
OOStandaloneAtmosphereGenerator.h:36
OOStandaloneAtmosphereGeneratorInfo::seed
RANROTSeed seed
Definition
OOStandaloneAtmosphereGenerator.h:33
OOStandaloneAtmosphereGeneratorInfo::planetScaleOffset
unsigned planetScaleOffset
Definition
OOStandaloneAtmosphereGenerator.h:51
OOStandaloneAtmosphereGeneratorInfo::cloudAlpha
float cloudAlpha
Definition
OOStandaloneAtmosphereGenerator.h:39
RANROTSeed
Definition
legacy_random.h:52
src
Core
Materials
OOStandaloneAtmosphereGenerator.h
Generated by
1.15.0