I'm casting a glm type to an normal array using glm::value_ptr() as follows
glm::vec4 position;
glm::mat3 orient;
...
glm::mat4 transformMatrix=glm::translate( glm::mat4(orient) , glm::vec3(position));
float *p=glm::value_ptr(transformMatrix);
However I'm getting this compile error:
error: invalid cast from type 'const glm::detail::tvec3<float>' to type 'float'|
Any help?