-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimport_3ds.cpp
49 lines (30 loc) · 908 Bytes
/
import_3ds.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/***********************************************
* $author: javery
* $date : 25 Nov 03
* $descp : Revamped,rethought approach to depricated import_geo.cpp.
* close to its 2 year pathetic anniversery
* $path : D:\Program Files\Microsoft Visual Studio\MyProjects\KaosEngineWorking\import_3ds.cpp
* $ver : 0.0.0
***********************************************/
#include "import_3ds.h"
#include <stdio.h>
static void Import3DSObject( pModel_t pModel , FILE* p3DS_BinFile )
// the workhorse!!!!
{
}
int Import3DSObject( pModel_t pModel , char* sFileName )
{
FILE* handle = fopen( sFileName , "r" );
if( handle == NULL )
{
MessageBox( NULL , "Unable to find a required object file!!!","IG_3DS_LoadObject critical fault." , MB_OK | MB_ICONERROR );
PostQuitMessage(0);
return -1;
}
else
{
Import3DSObject( pModel , handle );
fclose( handle );
}
return 1;
}