
opengl
文章平均质量分 78
mysunnnyday
这个作者很懒,什么都没留下…
展开
-
opengl
// opengl.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include // Header File For Windows #include // Header File For The OpenGL32 Library #inclu转载 2013-08-08 23:34:54 · 560 阅读 · 0 评论 -
glPushMatrix
glPushMatrix、glPopMatrix操作其实就相当于栈里的入栈和出栈。 许多人不明白的可能是入的是什么,出的又是什么。例如你当前的坐标系原点在你电脑屏幕的左上方。现在你调用glPushMatrix,然后再调用一堆平移、旋转代码等等,然后再画图。那些平移和旋转都是基于坐上角为原点进行变化的。而且都会改变坐标的位置,经过了这些变化后,你的坐标肯定不再左上角了。 那如果想恢复怎么办呢?这转载 2013-08-09 13:48:50 · 817 阅读 · 0 评论