View Full Version : GLSL.hpp - GLSL emulation library

01-11-2015, 09:59 PM
No questions to ask - just an item I want to share with the community. I wrote a GLSL emulation library similar to glm (http://glm.g-truc.net/), but all in one file. The short-cuts I had to take are:
-there are no half-float vector types;
-subvector selection and swizzling looks like a call to a function rather than item selection: MyVec.yz(); MyVec.x;

Here is the static non-expiring link to the header file location (I use the Google Drive and keep the file up-to date there):

GLSL.hpp (https://docs.google.com/file/d/0B5M-5LxIj9ZDajV0dFl5b0J6Wkk/view)

All GLSL functions are written in assembler (some use SSE4.1). Operators defined as inlines for now.
More info is inside the file (commented in first lines at the header).

Bug reports, comments or even code contributions (I don't believe in altruism of the others but...) are appreciated. :)