资源简介
该文件已经经过visual studio批生成处理用于配置glui环境.
代码片段和文件信息
/*
algebra3.cpp algebra3.h - C++ Vector and Matrix Algebra routines
GLUI User Interface Toolkit
Copyright (c) 1998-2007 Paul Rademacher
WWW: http://sourceforge.net/projects/glui/
Forums: http://sourceforge.net/forum/?group_id=92496
This software is provided ‘as-is‘ without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose
including commercial applications and to alter it and redistribute it
freely subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
/**************************************************************************
There are three vector classes and two matrix classes: vec2 vec3
vec4 mat3 and mat4.
All the standard arithmetic operations are defined with ‘*‘
for dot product of two vectors and multiplication of two matrices
and ‘^‘ for cross product of two vectors.
Additional functions include length() normalize() homogenize for
vectors and print() set() apply() for all classes.
There is a function transpose() for matrices but note that it
does not actually change the matrix
When multiplied with a matrix a vector is treated as a row vector
if it precedes the matrix (v*M) and as a column vector if it
follows the matrix (M*v).
Matrices are stored in row-major form.
A vector of one dimension (2d 3d or 4d) can be cast to a vector
of a higher or lower dimension. If casting to a higher dimension
the new component is set by default to 1.0 unless a value is
specified:
vec3 a(1.0 2.0 3.0 );
vec4 b( a 4.0 ); // now b == {1.0 2.0 3.0 4.0};
When casting to a lower dimension the vector is homogenized in
the lower dimension. E.g. if a 4d {XYZW} is cast to 3d the
resulting vector is {X/W Y/W Z/W}. It is up to the user to
insure the fourth component is not zero before casting.
There are also the following function for building matrices:
identity2D() translation2D() rotation2D()
scaling2D() identity3D() translation3D()
rotation3D() rotation3Drad() scaling3D()
perspective3D()
---------------------------------------------------------------------
Author: Jean-Francois DOUEg
Revised: Paul Rademacher
Version 3.2 - Feb 1998
Revised: Nigel Stew
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-19 18:25 glui-2.36\
目录 0 2018-09-19 18:25 glui-2.36\src\
文件 1504 2007-11-04 14:19 glui-2.36\src\LICENSE.txt
文件 36906 2007-11-04 14:19 glui-2.36\src\algebra3.cpp
文件 20092 2007-11-04 14:19 glui-2.36\src\algebra3.h
文件 6015 2007-11-04 14:19 glui-2.36\src\arcball.cpp
文件 3618 2007-11-04 14:19 glui-2.36\src\arcball.h
目录 0 2018-09-19 18:25 glui-2.36\src\devcpp\
文件 951 2005-07-05 04:11 glui-2.36\src\devcpp\example1.dev
文件 951 2005-07-05 04:11 glui-2.36\src\devcpp\example2.dev
文件 951 2005-07-05 04:11 glui-2.36\src\devcpp\example3.dev
文件 951 2005-07-05 04:11 glui-2.36\src\devcpp\example4.dev
文件 951 2005-07-05 04:11 glui-2.36\src\devcpp\example5.dev
文件 7834 2005-07-05 04:11 glui-2.36\src\devcpp\glui.dev
目录 0 2018-09-19 18:25 glui-2.36\src\doc\
文件 8843 2007-08-21 12:32 glui-2.36\src\doc\doxygen.cfg
文件 1344000 2006-08-16 11:53 glui-2.36\src\doc\glui_manual.doc
文件 239800 2005-03-28 09:09 glui-2.36\src\doc\glui_manual.pdf
目录 0 2018-09-19 18:25 glui-2.36\src\example\
文件 3989 2005-07-05 05:44 glui-2.36\src\example\example1.cpp
文件 7663 2006-07-06 17:42 glui-2.36\src\example\example2.cpp
文件 13541 2005-07-05 05:44 glui-2.36\src\example\example3.cpp
文件 10042 2006-07-06 17:42 glui-2.36\src\example\example4.cpp
文件 15513 2006-07-06 17:42 glui-2.36\src\example\example5.cpp
文件 10856 2006-08-16 21:38 glui-2.36\src\example\example6.cpp
文件 58088 2007-11-04 14:19 glui-2.36\src\glui.cpp
文件 10089 2007-11-04 14:19 glui-2.36\src\glui_add_controls.cpp
文件 21381 2007-11-04 14:19 glui-2.36\src\glui_bitmap_img_data.cpp
文件 5060 2006-07-06 17:42 glui-2.36\src\glui_bitmaps.cpp
文件 4793 2006-07-18 11:41 glui-2.36\src\glui_button.cpp
文件 5047 2007-11-04 14:19 glui-2.36\src\glui_checkbox.cpp
............此处省略620个文件信息
相关资源
- 利用opengl 读取建筑物模型 obj文件并加
- 学OpenGL编3D游戏含源代码
- openGL正方体贴图
- 用opengl写的一个保龄球游戏
- OpenGL完成对OFF文件的读取和使三维模
- OpenGL实验八犹他茶壶光照、阴影、纹
- opengl绘制花瓶演示
- 自己写的读取任意格式点云并读取的
- opengl加载off文件
- OPENGL 水波效果 源代码
- OpenGL光照测试Revision演示程序
- 基于OpenGL的3D旋转魔方
- OpenGL ES 3.x游戏开发 下卷
- OpenGL太阳系
- OpenGL实现小车模型的导入和渲染
- opengl绘制简单场景,实现平移旋转缩
- OpenGL读取显示obj文件并渲染
- OpenGL ES应用开发实践 指南 iOS卷pdf
- 计算机图形学OpenGL第三版.pdf
- Open GL编程指南原书第7版
- OpenGL编程指南(第8版 PDF) 中文版 高
- 计算机图形学场景漫游
- QT实现的Opencv图像处理、点云显示、演
- 交互式计算机图形学 基于OpenGL着色器
- OPENGL ES 3.0 中文版本 编程指南 原书第
- opengl台灯
- openGL电梯运动
- opengl树模型显示
- OpenGL纹理贴图.png格式图片小程序源码
- OpenGL蓝宝书5中文版+英文原版+GLTools
评论
共有 条评论