OpenGL -- for a circle (stored in a VBO), when it is translated, where does the center lie?
Let's say开发者_如何学Go I buffered a unit circle (from a triangle fan) that has a radius of one, and then I translate the object gltranslate(2,2,0). Where does that place the center of the circle? I come from a java graphics background where (x,y) represents the top left corner of an object.
Assuming that the modelview matrix was the identity prior to your glTranslate()
call, and further assuming that your VBO circle was defined with respect to the origin, the circle's center will be at (2,2,0).
精彩评论