Debian Codegraph @

utils/Modeller/3dconvert.cxx

raw symbols SCIP
1 #ifdef HAVE_CONFIG_H
2 # include <config.h>
3 #endif
4
5 #include <simgear/compiler.h>
6
7 #include <iostream>
8
9 #include <GL/glut.h>
10
11 #include <plib/ssg.h>
12
13 using std::cerr;
14 using std::endl;
15
16
17 int
18 main (int ac, char ** av)
19 {
20 if (ac != 3) {
21 cerr << "Usage: " << av[0] << " <file_in> <file_out>" << endl;
22 return 1;
23 }
24
25 int fakeac = 1;
26 char * fakeav[] = { "3dconvert",
27 "Convert a 3D Model",
28 0 };
29 glutInit(&fakeac, fakeav);
30 glutCreateWindow(fakeav[1]);
31
32 ssgInit();
33 ssgEntity * object = ssgLoad(av[1]);
34 if (object == 0) {
35 cerr << "Failed to load " << av[1] << endl;
36 return 2;
37 }
38
39 ssgSave(av[2], object);
40 }