- Jan 24, 2005
- 232
- 0
- 76
I am designing a Rubiks Cube for my final project in a basic OpenGL class and have gotten stuck in my project. Here is the basic code that I am having a problem with:
I created an array with 54 elements and basically each time the drawCube function is used (54 times) i want to store the verticies to the corresponding element of the array, but I have no idea how to do that. I need to do this in order to write a rotate function that will change the position of the squares each time the cube is rotated. I would greatly appreciate any help and will answer any questions asap. Thanks.
I created an array with 54 elements and basically each time the drawCube function is used (54 times) i want to store the verticies to the corresponding element of the array, but I have no idea how to do that. I need to do this in order to write a rotate function that will change the position of the squares each time the cube is rotated. I would greatly appreciate any help and will answer any questions asap. Thanks.
