Oolite
Loading...
Searching...
No Matches
OOTextureVerifierStage.h
Go to the documentation of this file.
1
/*
2
3
OOTextureVerifierStage.h
4
5
OOOXPVerifierStage which keeps track of textures (and images) that are used
6
and ensures they are loadable.
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 "
OOFileScannerVerifierStage.h
"
30
31
#if OO_OXP_VERIFIER_ENABLED
32
33
@interface
OOTextureVerifierStage
:
OOFileHandlingVerifierStage
{
34
@private
35
NSMutableSet*
_usedTextures
;
36
}
37
38
// Returns name to be used in -dependents by other stages.
39
+ (NSString*)nameForReverseDependencyForVerifier:(
OOOXPVerifier
*)verifier;
40
41
/* This can be called by other stages *before* the texture stage runs.
42
The context specifies where the texture is used; something like
43
"fooShip.dat" or "shipdata.plist materials dictionary for ship \"foo\"".
44
It should make sense with "Texture \"foo\" referenced in " in front of it.
45
*/
46
- (void)textureNamed:(NSString*)name usedInContext:(NSString*)context;
47
48
@end
49
50
// Convenience base class for stages that need to run before OOTextureHandlingStage.
51
@interface
OOTextureHandlingStage
:
OOFileHandlingVerifierStage
52
53
@end
54
55
@interface
OOOXPVerifier (OOTextureVerifierStage)
56
57
- (
OOTextureVerifierStage
*)
textureVerifierStage
;
58
59
@end
60
61
#endif
OOFileScannerVerifierStage.h
-[OOOXPVerifier(OOTextureVerifierStage) textureVerifierStage]
OOTextureVerifierStage * textureVerifierStage()
Definition
OOTextureVerifierStage.m:180
OOFileHandlingVerifierStage
Definition
OOFileScannerVerifierStage.h:109
OOOXPVerifier
Definition
OOOXPVerifier.h:46
OOTextureHandlingStage
Definition
OOTextureVerifierStage.h:52
OOTextureVerifierStage
Definition
OOTextureVerifierStage.h:33
OOTextureVerifierStage::_usedTextures
NSMutableSet * _usedTextures
Definition
OOTextureVerifierStage.h:35
src
Core
OXPVerifier
OOTextureVerifierStage.h
Generated by
1.15.0