开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜