存档在 2011年1月4日

《古月》将引入第三方库《OpenGL Mathematics (GLM)》

2011年1月4日

GLM在设计上完全遵照OpenGL Shading Language风格,并使用开放的MIT授权协议。

以下截图为新渲染引擎使用GLM矩阵控制移动、缩放、旋转后的效果。

新渲染引擎所使用的矩阵处理已经全面转为使用GLM,以下为GLM介绍:

OpenGL Mathematics (GLM) is a C++ mathematics library for 3D applications based on the OpenGL Shading Language (GLSL) specification.

GLM provides 3D programmers with math classes and functions that are similar to GLSL or any high level GPU programming language. The idea is to have a library that has identical naming conventions and functionalities than GLSL so that when developers know GLSL, they know how to use GLM.

However, this project isn’t limited by GLSL features. An extension system, based on the GLSL extension conventions, allows extended capabilities.

This library can be used with OpenGL but also for software rendering (Raytracing / Rasterisation), image processing and as much contexts as a simple math library could be used for.

GLM is written as a platform independent library and supports the following compilers:

· GNU GCC 3.4 and higher

· Microsoft Visual Studio 8.0 and higher

The source code is under the MIT licence.

Any feedback is welcome and can be sent to g.truc.creation[at]gmail.com.

鄂ICP备09027626号