Oolite
Loading...
Searching...
No Matches
OOModelVerifierStage.h
Go to the documentation of this file.
1/*
2
3OOModelVerifierStage.h
4
5OOOXPVerifierStage which keeps track of models that are used and ensures they
6are 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* _modelsToCheck;
36}
37
38// Returns name to be used in -dependents by other stages; also registers stage.
39+ (NSString*)nameForReverseDependencyForVerifier:(OOOXPVerifier*)verifier;
40
41/* This can be called by other stages *before* the model stage runs.
42 returns YES if the model is found, NO if it is not. Caller is responsible
43 for complaining if it is not.
44*/
45- (BOOL)modelNamed:(NSString*)name
46 usedForEntry:(NSString*)entryName
47 inFile:(NSString*)fileName
48 withMaterials:(NSDictionary*)materials
49 andShaders:(NSDictionary*)shaders;
50
51@end
52
53@interface OOOXPVerifier (OOModelVerifierStage)
54
56
57@end
58
59#endif