Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOStandaloneAtmosphereGenerator.h
Go to the documentation of this file.
1/*
2
3OOStandaloneAtmosphereGenerator.h
4
5Generator for planet atmospheres when the planet is using a
6non-generated diffuse map.
7
8
9Oolite
10Copyright (C) 2004-2013 Giles C Williams and contributors
11
12This program is free software; you can redistribute it and/or
13modify it under the terms of the GNU General Public License
14as published by the Free Software Foundation; either version 2
15of the License, or (at your option) any later version.
16
17This program is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License
23along with this program; if not, write to the Free Software
24Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25MA 02110-1301, USA.
26
27*/
28
30#import "OOMaths.h"
31
32
34{
36
37 unsigned width;
38 unsigned height;
39
40 // Atmosphere parameters.
46
47 // Noise generation stuff.
48 float *fbmBuffer;
49
50 uint16_t *permutations;
51
56
57
58
60{
61@private
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
struct OOStandaloneAtmosphereGeneratorInfo OOStandaloneAtmosphereGeneratorInfo
OOStandaloneAtmosphereGeneratorInfo _info