Skip to content
Snippets Groups Projects
Commit 9bb9f077 authored by Jonathan Kunstwald's avatar Jonathan Kunstwald
Browse files

Hide windows console on startup, clean up start screen

parent c4f74ea2
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,14 @@ void FlockApp::init()
setTitle("Flock");
GlfwApp::init();
toggleFullscreen();
// -- Clear once before startup --
{
GLOW_SCOPED(clearColor, glm::vec3(.5f, .6f, .7f));
glClear(GL_COLOR_BUFFER_BIT);
glfwSwapBuffers(window());
}
}
// -- Shader Include Setup --
......@@ -360,8 +368,6 @@ void FlockApp::init()
startupGameCore();
startupGameLogic();
}
toggleFullscreen();
}
void FlockApp::update(float)
......
#include "FlockApp.hh"
#ifdef _WIN32
#include <Windows.h>
#endif
int main()
{
// -- Windows only - hide console window --
#ifdef _WIN32
::ShowWindow(::GetConsoleWindow(), SW_HIDE);
#endif
flock::FlockApp app;
return app.run();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment