Oolite
Loading...
Searching...
No Matches
TextureStore.h
Go to the documentation of this file.
1/*
2
3TextureStore.h
4
5Singleton responsible for loading, binding and caching textures.
6
7Legacy class, used only by PlanetEntity. Use OOTexture or OOMaterial for any
8new development.
9
10
11Oolite
12Copyright (C) 2004-2013 Giles C Williams and contributors
13
14This program is free software; you can redistribute it and/or
15modify it under the terms of the GNU General Public License
16as published by the Free Software Foundation; either version 2
17of the License, or (at your option) any later version.
18
19This program is distributed in the hope that it will be useful,
20but WITHOUT ANY WARRANTY; without even the implied warranty of
21MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22GNU General Public License for more details.
23
24You should have received a copy of the GNU General Public License
25along with this program; if not, write to the Free Software
26Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
27MA 02110-1301, USA.
28
29*/
30
31// TextureStore is only used for old planets.
32#import "OOStellarBody.h"
33#if !NEW_PLANETS
34
35#import "OOFoundation.h"
36#import "OOOpenGL.h"
37
38@class OOColor;
39
40@interface TextureStore : NSObject
41
42// routines to create textures...
43+ (BOOL)getPlanetTextureNameFor:(NSDictionary*)planetInfo
44 intoData:(unsigned char**)textureData
45 width:(GLuint*)textureWidth
46 height:(GLuint*)textureHeight;
47+ (BOOL)getCloudTextureNameFor:(OOColor*)color impress:(GLfloat)impress bias:(GLfloat)bias
48 intoData:(unsigned char**)textureData
49 width:(GLuint*)textureWidth
50 height:(GLuint*)textureHeight;
51
52@end
53
55
56#endif // !NEW_PLANETS
void fillRanNoiseBuffer()