Oolite 1.91.0.7604-240417-a536cbe
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{
35@private
36 NSMutableSet *_usedTextures;
37}
38
39// Returns name to be used in -dependents by other stages.
40+ (NSString *)nameForReverseDependencyForVerifier:(OOOXPVerifier *)verifier;
41
42/* This can be called by other stages *before* the texture stage runs.
43 The context specifies where the texture is used; something like
44 "fooShip.dat" or "shipdata.plist materials dictionary for ship \"foo\"".
45 It should make sense with "Texture \"foo\" referenced in " in front of it.
46*/
47- (void) textureNamed:(NSString *)name usedInContext:(NSString *)context;
48
49@end
50
51
52// Convenience base class for stages that need to run before OOTextureHandlingStage.
54
55@end
56
57
59
60- (OOTextureVerifierStage *)textureVerifierStage;
61
62@end
63
64#endif