Okay. here's a problem I can't wrap my mind around. I think I basically need all of my opengl transformations to be isolated by glPushMatrix and glPopMatrix. So I have stuff like this:
I need each drawing routine to be encased in a glPushMatrix and glPopMatrix. I think I understand that this is kind of simplistic in it's approach, and even still I can't figure it out, and if there's a better design, suggestions are welcomed.Code:abstract base object has virtual void draw() = 0 class stuff extends object and implements draw class sturf extends object and implements draw class stcrf extends object and implements draw application has array of objects and draws them