YKingY
12-16-2008, 10:58 AM
hi all, im new to openGL.
i want to draw 2 3Dcubes into a window h = 1000, w = 1000.
however i cant find a suitable way to give the Cubes X,Y and Z co-ords window cords.
i beleieve when glut opens a window (0,0) is top left ?
so i want to give Cube1 an X and Y of 100,100
and give Cube 2 900,900.
i also want to be able to input a keyboard command that will swap the 2 cubes positions.
Any ideas or advice about the best way to go about assigning window co-ords to cubes and a suitable way to change their positions would be greatly appreciated.
Thanks for your time.
i want to draw 2 3Dcubes into a window h = 1000, w = 1000.
however i cant find a suitable way to give the Cubes X,Y and Z co-ords window cords.
i beleieve when glut opens a window (0,0) is top left ?
so i want to give Cube1 an X and Y of 100,100
and give Cube 2 900,900.
i also want to be able to input a keyboard command that will swap the 2 cubes positions.
Any ideas or advice about the best way to go about assigning window co-ords to cubes and a suitable way to change their positions would be greatly appreciated.
Thanks for your time.