I found an example program on how to avoid locking the driveshaft: http://www.mfwweb.com/OpenGL/Special_Rotations/Source.c My question is what the void Render_Scene(void) function looks like if we have several objects placed in a vector or list? I used a snippet of this code in my program, but the rotation does not work. I know that there are some problems with matrices. Here is my paintGL () function (I use qt):
void GLBox::paintGL() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); double *trans; double *rot; double *matrix; double ang; double **vertexes;
Perhaps you know how to fix this problem? thanks for the help
source share