I have no idea what your code does but my snippet rotates in the middle of the square.Zitat:
Zitat von eldiablov
StartGu
Translate
Rotate
Draw Model
EndGu
What you are doing are pushing the operations on as stack from StartGu. When EndGu is called, it pops the operations off the stack and processes them.
In reality, what that would do is:
Draw the model
Rotate
Translate.
What I suspect is you have called:
StartGu
Rotate
Translate
Draw Model
EndGu
Or drawn the square off center when declaring the vertices.
