issue porting C++/glm/openGL to D/gl3n/openGL

rsw0x via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 9 22:35:34 PST 2016


On Sunday, 10 January 2016 at 02:51:57 UTC, WhatMeWorry wrote:
>
> Just translating some simple C++/glm/opengl tutorial code to 
> D/gl3n/opengl and I'm coming across more friction than I 
> expected.  I've got a square centered at my window which is 
> rotated by 45 degrees (counter clockwise) and then moved to the 
> lower right quadrant.
>
> [...]

iirc, gl3n uses row major and glm uses column major ordering
just pass GL_TRUE to the transpose argument in glUniformMatrix4fv


More information about the Digitalmars-d-learn mailing list