OpenGL中的平面圓繪製與貼圖

兩種畫圓的方法,DrawCircle2()爲通常的作法,利用GL_LINE_STRIP實現,函數  void DrawCircle2(float cx, float cy, float r, int num_segments) { glBegin(GL_LINE_STRIP); for (int i=0; i<=num_segments; i++) { glVertex2f( cx+r*
相關文章
相關標籤/搜索