36 QList<LDDocument*> g_loadedFiles; |
36 QList<LDDocument*> g_loadedFiles; |
37 ForgeWindow* g_win = null; |
37 ForgeWindow* g_win = null; |
38 const QApplication* g_app = null; |
38 const QApplication* g_app = null; |
39 File g_file_stdout (stdout, File::Write); |
39 File g_file_stdout (stdout, File::Write); |
40 File g_file_stderr (stderr, File::Write); |
40 File g_file_stderr (stderr, File::Write); |
41 static str g_versionString, g_fullVersionString; |
41 static QString g_versionString, g_fullVersionString; |
42 |
42 |
43 const Vertex g_origin (0.0f, 0.0f, 0.0f); |
43 const Vertex g_origin (0.0f, 0.0f, 0.0f); |
44 const Matrix g_identity ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); |
44 const Matrix g_identity ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); |
45 |
45 |
46 cfg (Bool, firststart, true); |
46 cfg (Bool, firststart, true); |
89 |
89 |
90 // ============================================================================= |
90 // ============================================================================= |
91 // ----------------------------------------------------------------------------- |
91 // ----------------------------------------------------------------------------- |
92 void doPrint (File& f, initlist<StringFormatArg> args) |
92 void doPrint (File& f, initlist<StringFormatArg> args) |
93 { |
93 { |
94 str msg = DoFormat (args); |
94 QString msg = DoFormat (args); |
95 f.write (msg.toUtf8()); |
95 f.write (msg.toUtf8()); |
96 f.flush(); |
96 f.flush(); |
97 } |
97 } |
98 |
98 |
99 // ============================================================================= |
99 // ============================================================================= |
100 // ----------------------------------------------------------------------------- |
100 // ----------------------------------------------------------------------------- |
101 void doPrint (FILE* fp, initlist<StringFormatArg> args) |
101 void doPrint (FILE* fp, initlist<StringFormatArg> args) |
102 { |
102 { |
103 str msg = DoFormat (args); |
103 QString msg = DoFormat (args); |
104 fwrite (msg.toStdString().c_str(), 1, msg.length(), fp); |
104 fwrite (msg.toStdString().c_str(), 1, msg.length(), fp); |
105 fflush (fp); |
105 fflush (fp); |
106 } |
106 } |
107 |
107 |
108 // ============================================================================= |
108 // ============================================================================= |