Whenever I run my GLUT OpenGL program the window starts off minimized in the dock. How can I stop this from happening? Thanks!
Here is my code:
#include <iostream>
#include <OpenGL/OpenGL.h>
#include <GLUT/GLUT.h>
void RenderScene(void)
{
// Clear the window with current clearing color glClear(GL_COLOR_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT);
// Flush drawing commands glFlush();
glFlush();
}
// Set up the rendering state
void SetupRC(void)
{
glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
}
int main(int argc, char* argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA);
glutCreateWindow("Simple");
glutDisplayFunc(RenderScene);
SetupRC();
glutMainLoop();
return 0;
}
Why is this happening?!?
Thanks