im working on porting this to webgl - mingw isnt working so i cant port it to windows for some reason