![]() |
|
Problem with Rubik Cube |
Scooter
Member #16,799
January 2018
|
Hi all: When you run the program the cube will start to rotate. I have no idea what is happening except there is something going on The program is quite large now. I want to put it in an array after I |
Dizzy Egg
Member #10,824
March 2009
![]() |
Firstly, you're only declaring 5 textures, you need 6: GLuint texture[6]; //YOU HAD THIS AS 5!! Secondly, you need to fix your rotate code: if(rotate == false) { glRotatef(45.0, 1.0, 0.0, 0.0); glRotatef(45.0, 0.0, 1.0, 0.0); } That should get you where you need to be! EDIT:
---------------------------------------------------- |
Scooter
Member #16,799
January 2018
|
Hi Dizzy: I had texture[5]; Then right beside that, I had load 6 textures. Also, some months ago I sent you a really fast program that loaded Thanks for looking at my code. I hope you didn't have to spend much |
|