Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Is there a way to get the address of a matrix from a GLM matrix?

I'm using opengl 4 and glm library though I can't seem to find anything, which might help.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can access the memory of any glm type by using glm::value_ptr. Matrix types store their values in column-major order, and as floats.

share|improve this answer
    
thank you, is there any web reference for glm library? –  Oleg Bondarenko May 18 '13 at 21:28
1  
@OlegBondarenko the link in my answer should take you to the documentation. If not: glm.g-truc.net/api-0.9.4/modules.html –  Stephan van den Heuvel May 18 '13 at 21:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.