30 |
#include <Foundation/NSArray.h> |
#include <Foundation/NSArray.h> |
31 |
#include <Foundation/NSProcessInfo.h> |
#include <Foundation/NSProcessInfo.h> |
32 |
#include <Foundation/NSPathUtilities.h> |
#include <Foundation/NSPathUtilities.h> |
33 |
|
#include <Foundation/NSBundle.h> |
34 |
#include <AppKit/NSEvent.h> |
#include <AppKit/NSEvent.h> |
35 |
|
|
36 |
#include "Common/Camera.h" |
#include "Common/Camera.h" |
60 |
|
|
61 |
+ (MdlModel *) model |
+ (MdlModel *) model |
62 |
{ |
{ |
63 |
return [[MdlModel alloc] |
static MdlModel *model = nil; |
64 |
initWithContentsOfFile: @"Resources/Model/bateau.mdl"]; |
|
65 |
|
if (!model) |
66 |
|
{ |
67 |
|
NSString *modelPath |
68 |
|
= [[NSBundle mainBundle] pathForResource: @"bateau" |
69 |
|
ofType: @"mdl" |
70 |
|
inDirectory: @"Data/Models"]; |
71 |
|
|
72 |
|
model = [[MdlModel alloc] initWithContentsOfFile: modelPath]; |
73 |
|
} |
74 |
|
|
75 |
|
return model; |
76 |
} |
} |
77 |
|
|
78 |
@end |
@end |