Restored from previous forum. Originally posted by CodeMeister.
greetings,
I recently purchased and dl'd the 3.50 version of PB. Very cool.
However, when I "compile and run" the OpenGL cube code, the display
window opens but there is no rotating cube to be seen. I've run through
the debugger but as far as I can see, the code appears correct.
Has anyone else encountered this problem? Is the code generated by PB dynamically linked to the opengl dll files in my windows system32 dir?
I have a background in C/C++ so PB is a bit new to me in this regard.
Thanks!
"If stupidity got us into this mess, why can't it get us out?"
OpenGL question
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by wrtyler.
Codemeister -
It's a little change you have to make in the code. There is a line that says
Zoomfactor = 0
You need to change that to
Zoomfactor = 1
And everything will work. At Zoomfactor = 0, I believe the camera is inside the cube, so you need to move is back.
regards,
wayne
Codemeister -
It's a little change you have to make in the code. There is a line that says
Zoomfactor = 0
You need to change that to
Zoomfactor = 1
And everything will work. At Zoomfactor = 0, I believe the camera is inside the cube, so you need to move is back.
regards,
wayne
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm