@@ -72,11 +72,6 @@ void MainBackend::run(const std::string& vAppPath) {
7272
7373// todo : to refactor ! i dont like that
7474bool MainBackend::init (const std::string& vAppPath) {
75- #ifdef _DEBUG
76- SetConsoleVisibility (true );
77- #else
78- SetConsoleVisibility (false );
79- #endif
8075 if (m_InitWindow () && m_InitImGui ()) {
8176 m_InitPlugins (vAppPath);
8277 m_InitModels ();
@@ -199,37 +194,6 @@ int MainBackend::GetMouseButton(int vButton) {
199194 return glfwGetMouseButton (m_MainWindowPtr, vButton);
200195}
201196
202- // //////////////////////////////////////////////////////////////////////////////////////////////////////////
203- // // CONSOLE ///////////////////////////////////////////////////////////////////////////////////////////////
204- // //////////////////////////////////////////////////////////////////////////////////////////////////////////
205-
206- void MainBackend::SetConsoleVisibility (const bool vFlag) {
207- m_ConsoleVisiblity = vFlag;
208-
209- if (m_ConsoleVisiblity) {
210- // on cache la console
211- // on l'affichera au besoin comme blender fait
212- #ifdef WIN32
213- ShowWindow (GetConsoleWindow (), SW_SHOW );
214- #endif
215- } else {
216- // on cache la console
217- // on l'affichera au besoin comme blender fait
218- #ifdef WIN32
219- ShowWindow (GetConsoleWindow (), SW_HIDE );
220- #endif
221- }
222- }
223-
224- void MainBackend::SwitchConsoleVisibility () {
225- m_ConsoleVisiblity = !m_ConsoleVisiblity;
226- SetConsoleVisibility (m_ConsoleVisiblity);
227- }
228-
229- bool MainBackend::GetConsoleVisibility () {
230- return m_ConsoleVisiblity;
231- }
232-
233197// //////////////////////////////////////////////////////////////////////////////////////////////////////////
234198// // RENDER ////////////////////////////////////////////////////////////////////////////////////////////////
235199// //////////////////////////////////////////////////////////////////////////////////////////////////////////
0 commit comments