I am trying to create a class based system for rendering Bullet Physics objects in openGL, however, I run into problems with this:
float mat; t.getOpenGLMatrix(mat); glPushMatrix(); glMultMatrixf(mat); //translation,rotation glColor3f(red,green,blue); gluSphere(quad,r,40,40); glPopMatrix();
It is in a different file than my main.cpp... I figured that was what was causing the error.
I get an error: Unhandled exception at 0x69939161 in JTechEngine.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd.