On Mon, 16 Jan 2012 22:26:55 +0100, David <d...@dav1d.de> wrote:

Am 16.01.2012 03:54, schrieb JoeCoder:
On 1/15/2012 1:42 PM, Walter Bright wrote:

A nice vector math library for D that puts us competitive will be a nice
addition to Phobos.

The gl3n library might be something good to build on:
https://bitbucket.org/dav1d/gl3n

It looks to be a continuation of the OMG library used by Deadlock, and
is similar to the glm (http://glm.g-truc.net) c++ library which emulates
glsl vector ops in software.

We'd need to ask if it can be re-licensed from MIT to Boost.
Hi,

that's definitly possible! But to be honest, I don't think putting gl3n into phobos is a good idea. Why does phobos, the std. lib, need a vector-lib?

To make it all the easier for those who want to make games in D?


I haven't seen any other language with something like gl3n in the std. lib. Also I used my own PEP-8, C (K&R with spaces) style, it would be a real pain changing this to the Phobos style. One more point is, that it's not just a Vector-lib, it also does Matrix-, Quaternion-math, interpolation and implements some other useful mathematical functions (as found in GLSL).
Of course I am open to a discussion.

IMO, we should have vectors, matrices, quaternions and all those other
neat things easily accessible in the language (dual quaternions? Are they
used in games?)


PS:// I already talked with Manu about this topic, and I don't wait too long, gl3n will have core.simd support soon.

Looking forward to it.

Reply via email to