Oolite
Loading...
Searching...
No Matches
OOTextureVerifierStage.h
Go to the documentation of this file.
1/*
2
3OOTextureVerifierStage.h
4
5OOOXPVerifierStage which keeps track of textures (and images) that are used
6and ensures they are loadable.
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
31#if OO_OXP_VERIFIER_ENABLED
32
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.
52
53@end
54
55@interface OOOXPVerifier (OOTextureVerifierStage)
56
58
59@end
60
61#endif