//#include"Qua.h";
#include
#include
using std::cout;
using std::endl;
void DrawCube( int * a, int * b, int * level )
{
glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
glLineWidth(1.0f);
glEnable( GL_LINE_STIPPLE );
glLineStipple(1, 0x0F0F);
作者: junglesong
这是我过去进行一个OpenGL项目时使用到的"三维空间向量/点"类及相关函数,使用它们可以定义一个空间向量/点,实现向量的平移,缩放和旋转等,使用相关函数还可以实现两向量的叉乘,得到一个向量的绝对长度,将一个向量单位化,得到一个三点决定的平面的垂直向量(经过单位化),得到空间中两点的距离,得到两向量的点积,得到两向量的夹角等操作,为方便用户的使用,每个函数都有详细的注释,特别重要的向量计算如点积,叉乘还有相关说明,希望对大家有所用处.
由于源程序涉及到保密问题不能和盘托出,请见谅.
junglesong@etang.com-Author : junglesong This is my last OpenGL for a project to use the "three-dimensional vector space/point "and related functions, they can use a definition of space vector/points, for the vector translation, zooming and rotation, using correlation function can also achieve two fork by Vector, a vector to be the absolute length of a vector unit, 3:00 been a decision of the vertical plane of Vector (those units), a space to be the distance between two points, Vector to be the two plot points, to be the angle between two vectors such operations, as a user-use, Each function has detailed notes, a particularly important point if the calculation vector plot, fork also took note, we hope to have use
OPGL的测试工具介绍和比较。笔者根据自己的经验对现有的openGL测试工具进行了详细的比较。-OPGL introduction of testing tools and compared. Author according to their own experience of the existing testing tools openGL carried out a detailed comparison.
这是一个非常完整、详细的三维地形漫游程序。可以帮助你学习怎么进行地形的建模和漫游!-This is a very complete and detailed three-dimensional terrain walkthrough procedures. Can help you learn how to terrain modeling and roaming!