Hello, I’m brand new to OpenGL and I’m having trouble moving a model inside a scene.
void timerFunc(int value)
{
glutTimerFunc(300, timerFunc, ++value);
//translateMatrix is a math function that takes in the matrix plus x, y, and z coordinates
translateMatrixBy(myModel->modelMatrix, 5.0f, 0.0f, 0.0f);
//this is just some text to verify that this section is running
char notify[] = {‘1’,‘2’,‘3’};
printf("%c",spinner[value%sizeof(spinner)/sizeof(char)]);
myModel->render();
glutPostRedisplay();
}
The timer function is getting called. I’m guessing that re-rendering the model isn’t what I need to be doing, or that changing the model matrix doesn’t actually re-call the shader in the rendering process… or that I’m just completely confused. Any assistance would be hugely appreciated.