OpenGL -- 畫三角形

OpenGL

安裝

簡介

畫點

多邊形

模型

材質

花紋

骨架

運動

遊戲

模型編輯

訊息

相關網站

參考文獻

最新修改

簡體版

English

 struct vector3d
{   
    float x,y,z
} 

void DrawButton(void)
{
  glLoadName(1);//pick用,儲存名稱
  glBegin(GL_TRIANGLES);
  glVertex3f(0,10,0);
  glVertex3f(10,10,0);
  glVertex3f(0,0,0);
  glEnd();
}

Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License