//////////////////////////////////////////////////////////
cRenderClass.cpp
//////////////////////////////////////////////////////////

void cRenderClass::create(int argc, _TCHAR* argv[])
{
	// initialise the glut library
	glutInit(&argc, (char**)argv);

	// set up the initial display mode
	// need both double buffering and z-buffering
	glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);

	// set the initial window position
	glutInitWindowPosition(100, 100);

	// set the initial window size
	glutInitWindowSize(SCREEN_WIDTH, SCREEN_HEIGHT);

	// create and name the window
	glutCreateWindow("Wow!");


	// keyboard callback
	glutKeyboardFunc(processNormalKeys);
	// speacial keys callback
	glutSpecialFunc(processSpecialKeys);
	// mouse callback
	glutMouseFunc(mouseFunc);
	// passive mouse motion callback function
	glutPassiveMotionFunc(passiveMotionFunc);



	// reshape callback for current window
	glutReshapeFunc(winReshapeFunc);

	// set display callback for current window
	glutDisplayFunc(renderScene);	

	// set up the global idle callback
	glutIdleFunc(update);
}


//////////////////////////////////////////////////////////////////////////////////////////
// processNormalKeys - keboard callback function
//////////////////////////////////////////////////////////////////////////////////////////
void processNormalKeys(unsigned char key, int x, int y)
{
	switch (key)
	{
	case '+':
	{

	}
	break;

	}
}

//////////////////////////////////////////////////////////////////////////////////////////
// processSpecialKeys - keboard special keys callback function
//////////////////////////////////////////////////////////////////////////////////////////
void processSpecialKeys(int key, int x, int y)
{
	switch (key)
	{
		case GLUT_KEY_F1:
		{
		}
		break;
	}
}

//////////////////////////////////////////////////////////////////////////////////////////
// mouseFunc - mouse input callback function
//////////////////////////////////////////////////////////////////////////////////////////
void mouseFunc(int button, int state, int mouse_x, int mouse_y)
{
	if (state == GLUT_UP)
	{
	}
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// passiveMotionFunc() - process passive mouse movements
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void passiveMotionFunc(int mouse_x, int mouse_y)
{
}


