Oolite
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
29#import "OOMaths.h"
31
34
35 unsigned width;
36 unsigned height;
37
38 // Atmosphere parameters.
44
45 // Noise generation stuff.
46 float* fbmBuffer;
47
48 uint16_t* permutations;
49
54
56@private
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
OOStandaloneAtmosphereGeneratorInfo _info