Hi,
Am new to openGl and am having problems as i dont know where things should go, could someone please post up a basic layout, e.g. where the gluPerspective should be defined. I have the follwoing as a what i use as a start up:
init()
//initiate any openGL stuff
glClearColor()
Main()
//use this to create the window and used for callbacks
glutCreateWindow()
glutInit ( &argc, argv )
init()
glutKeyboardFunc(keyPressfunc);
glutMainLoop ();
keyPressFunc()
/use this to listen to key presses
The main thing that i am looking for is where should i put the gluPerspective and the gluLookAt as these are what i am using, jhave tried the init and display functions but changing the values dont do anything.
Cheers