main.cpp

changeset 3
2b78cf8634c3
parent 0
c51cce84a9ac
child 4
758302636564
equal deleted inserted replaced
2:d71faa0a6133 3:2b78cf8634c3
10 10
11 int main (int argc, char** argv) { 11 int main (int argc, char** argv) {
12 g_CurrentFile = IO_ParseLDFile ("55966.dat"); 12 g_CurrentFile = IO_ParseLDFile ("55966.dat");
13 g_BBox.calculate(); 13 g_BBox.calculate();
14 14
15 printf ("bbox: (%.3f, %.3f, %.3f), (%.3f, %.3f, %.3f)\n", 15 if (g_CurrentFile) {
16 FVERTEX (g_BBox.v0), FVERTEX (g_BBox.v1)); 16 printf ("bbox: (%.3f, %.3f, %.3f), (%.3f, %.3f, %.3f)\n",
17 printf ("%u objects\n", g_CurrentFile->objects.size()); 17 FVERTEX (g_BBox.v0), FVERTEX (g_BBox.v1));
18 printf ("%u objects\n", g_CurrentFile->objects.size());
19 }
18 20
19 QApplication app (argc, argv); 21 QApplication app (argc, argv);
20 LDForgeWindow* win = new LDForgeWindow; 22 LDForgeWindow* win = new LDForgeWindow;
21 g_qWindow = win; 23 g_qWindow = win;
22 g_qWindow->buildObjList (); 24 g_qWindow->buildObjList ();

mercurial