Here is the program code, what do I need to do to get the background color to load automatically.Do I need DOuble Buffer Action? Or is just the Glaux.h Crazy
// understandingisnotpartofCpluslus.cpp : Defines the entry point for the application.
//
#include “stdafx.h”
#include <gl/gl.h>
#include <gl/glaux.h>
void CALLBACK getjunk();
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
auxInitDisplayMode(AUX_SINGLE | AUX_RGBA);
auxInitWindow("My second OpenGL Program");
glFlush();
auxMainLoop(getjunk);
return 0;
}
void CALLBACK getjunk()
{
glClearColor(0.0, 1.0, 1.0, 0.0) ;
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
}