Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.