opengl投影变换与逆变换
摘要:        
一个新手都在问的:opengl中如何将2d窗口坐标转换为3d空间坐标。以下是测试代码,需用到glm库。#include <string>#include <cstdlib>#include <iostream>#include <glm/glm.hpp>#include <glm/ext.hpp>using namespace std;using namespace glm;void print(const vec4& v) { cout << v[0] << " " <<    阅读全文
        posted @ 2012-12-10 10:59 SoMiSoDo 阅读(3991) 评论(0) 推荐(0)
 
                    
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号