首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏全栈程序员必看

    glPushMatrix和glPopMatrix的作用

    glTranslatef (-0.5, 0.0, 0.0); // 将旋转后的Wirebox向左移动0.5个单位 glRotatef ((GLfloat) shoulder, 0.0, 0.0, glTranslatef (1.0, 0.0, 0.0); //Step 1将WireBox向右移动一个单位 // void auxWireBox(GLdouble width,GLdouble height ,GLdouble depth) auxWireBox(2.0, 0.2, 0.5); //这个WireBox以x=1为中心,width=2从该中心开始向两边各延伸1个单位。

    73630编辑于 2022-07-22
领券