Demo entry 6782350

1

   

Submitted by 2 on Jan 12, 2019 at 18:36
Language: C++. Code size: 249 Bytes.

else if (g_draw_content == SHAPE_CYLINDER)   
{//TODO: 添加画圆柱的代码 
    glLoadIdentity();     glTranslatef(0.0f, 0.0f, -6.0f); 
    glRotatef(g_rquad, g_rquad, g_rquad, 1.0f); // 在XYZ轴上旋转立方体 
    DrawCylinder(); 
    g_rquad += 0.2f;// 增加旋转变量 } 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).