随笔分类 -  OpenGL技术

熟练精通
摘要:It's pretty simple to build your own look-at matrix.First, calculate forward, right, and up vectors. The forward vector should be a unit vector pointing in the direction that your camera is looking. T... 阅读全文
posted @ 2009-12-28 14:25 Bigcoder 阅读(815) 评论(0) 推荐(0) 编辑
摘要:在NeHe上,通过BMP文件来加载纹理,使用的是glaux.h函数库中的auxDIBImageLoad(Filename)函数来解决的,使用起来比较方便,可是,glaux.h这个函数库作为OpenGL平台发展的一个中间过渡产品,存在这不够稳定及功能不够完整的缺点,所以一般不使用这个函数库,而选择glut.h,以下是分别应用这两种函数库来实现纹理图像加载的实例: 1. 使用glaux.h函数库实现主... 阅读全文
posted @ 2009-02-13 11:05 Bigcoder 阅读(4221) 评论(1) 推荐(0) 编辑