05 2019 档案
摘要:class wcPt3D { public: GLfloat x, y, z; }; typedef GLfloat Matrix4x4[4][4]; // 打印矩阵 void printMatrix4x4(Matrix4x4 mat) { printf("["); for (int row = 0; row < 4; ++row) { for (int col = 0; col...
阅读全文
摘要:二维几何变换相比三维略简单一点但原理基本一致,下列代码实现了平移、缩放、旋转变换,并有一个复合变换矩阵保存所有变换计算后的结果,方便用其结果在OpenGL进行渲染
阅读全文

浙公网安备 33010602011771号