Line data Source code
1 0 : /* 2 : 3 : OOModelVerifierStage.h 4 : 5 : OOOXPVerifierStage which keeps track of models that are used and ensures they 6 : 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 "OOTextureVerifierStage.h" 30 : 31 : #if OO_OXP_VERIFIER_ENABLED 32 : 33 0 : @interface OOModelVerifierStage: OOTextureHandlingStage 34 : { 35 : @private 36 0 : NSMutableSet *_modelsToCheck; 37 : } 38 : 39 : // Returns name to be used in -dependents by other stages; also registers stage. 40 0 : + (NSString *)nameForReverseDependencyForVerifier:(OOOXPVerifier *)verifier; 41 : 42 : /* This can be called by other stages *before* the model stage runs. 43 : returns YES if the model is found, NO if it is not. Caller is responsible 44 : for complaining if it is not. 45 : */ 46 0 : - (BOOL)modelNamed:(NSString *)name 47 : usedForEntry:(NSString *)entryName 48 : inFile:(NSString *)fileName 49 : withMaterials:(NSDictionary *)materials 50 : andShaders:(NSDictionary *)shaders; 51 : 52 : @end 53 : 54 : 55 : @interface OOOXPVerifier(OOModelVerifierStage) 56 : 57 0 : - (OOModelVerifierStage *)modelVerifierStage; 58 : 59 : @end 60 : 61 : #endif