Closed MaikKlein closed 9 years ago
Hi, which version of GLM are you using ?
I am on the newest master https://github.com/g-truc/glm
The error really confuses me because there definitely is a tvec2 template in glm::detail.
I just tried
using myvec2 = glm::detail::tvec2<float,glm::precision::mediump>;
myvec2 v(1.0,0.0);
Uniform<myvec2>(prog,"Color").Set(v);
I also tried to use some older versions of glm, but I can't go lower than 0.9.5 because it seems the file order has changed since then.
Okay solved it. I had accidentally two versions of glm installed which confused me. The easy fix is s/detail:://g
in https://github.com/matus-chochlik/oglplus/blob/bd811de7934d59524c2cbff628df34bb70366e50/include/oglplus/interop/glm.hpp
That is of course if you want to update to the newest version of glm otherwise I am going to fork it. Do you want to patch it yourself or should I make a patch?
Thanks, for the patch. If I find some reliable way of detecting GLM version I'll probably add some #ifdef
s to use the old definition where applicable.
For some reason I can't use glm with oglplus. This line is giving me some headeach
Uniform<glm::vec2>(prog,"Color").Set(glm::vec2(1.,0.));
I am compiling with clang 4.5 on linux.
This is the file that is responsible https://github.com/matus-chochlik/oglplus/blob/bd811de7934d59524c2cbff628df34bb70366e50/include/oglplus/interop/glm.hpp#L37
And the complete source code: