Closed rpavlik closed 11 years ago
OK, so after a long time, and two attempts using template metaprogramming (Both of which worked in gcc and clang, but both of which blew up vc 2008's compiler), I've resolved this by using code generation before compilation, with Lua and a template system. This compiles on Windows and Linux, and works properly.
Should be declarative/modular and type driven. For instance, you can multiply two vectors of the same size together - dot product. you can multiply an vec3 by a matrix or the other order (implied transpose). You can multiply two matrices together. Can multiply a vector by a scalar (though OSG only has a one-sided operator for this).