Oolite
1.91.0.7658-250404-b1488af
Toggle main menu visibility
Main Page
Topics
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
z
Enumerations
g
k
m
o
r
s
t
w
Enumerator
a
b
c
d
e
g
j
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
Core
TextureStore.h
Go to the documentation of this file.
1
/*
2
3
TextureStore.h
4
5
Singleton responsible for loading, binding and caching textures.
6
7
Legacy class, used only by PlanetEntity. Use OOTexture or OOMaterial for any
8
new development.
9
10
11
Oolite
12
Copyright (C) 2004-2013 Giles C Williams and contributors
13
14
This program is free software; you can redistribute it and/or
15
modify it under the terms of the GNU General Public License
16
as published by the Free Software Foundation; either version 2
17
of the License, or (at your option) any later version.
18
19
This program is distributed in the hope that it will be useful,
20
but WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
GNU General Public License for more details.
23
24
You should have received a copy of the GNU General Public License
25
along with this program; if not, write to the Free Software
26
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
27
MA 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 "
OOCocoa.h
"
36
#import "
OOOpenGL.h
"
37
38
39
@class
OOColor
;
40
41
42
@interface
TextureStore
: NSObject
43
44
// routines to create textures...
45
+ (BOOL) getPlanetTextureNameFor:(NSDictionary *)planetInfo
46
intoData:(
unsigned
char
**)textureData
47
width:(GLuint *)textureWidth
48
height:(GLuint *)textureHeight;
49
+ (BOOL) getCloudTextureNameFor:(
OOColor
*)color :(GLfloat)impress :(GLfloat)bias
50
intoData:(
unsigned
char
**)textureData
51
width:(GLuint *)textureWidth
52
height:(GLuint *)textureHeight;
53
54
@end
55
56
57
void
fillRanNoiseBuffer
();
58
59
60
#endif
// !NEW_PLANETS
OOCocoa.h
OOOpenGL.h
OOStellarBody.h
fillRanNoiseBuffer
void fillRanNoiseBuffer()
Definition
TextureStore.m:181
OOColor
Definition
OOColor.h:46
TextureStore
Definition
TextureStore.h:43
Generated by
1.13.2