gl3n does not seem to have an ortho function like glm. Any replacements?

WhatMeWorry via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 4 14:30:42 PDT 2015


I'm porting some C++/OpenGL/glm code over to D, And I've run into 
a glm::ortho function.

glm::mat4 projection = glm::ortho(0.0f, 
static_cast<GLfloat>(WIDTH), 0.0f, static_cast <GLfloat> 
(HEIGHT));


gl3n is great for vecs and mats but does not appear to have an 
ortho function.

Any suggestions?

Thanks in advance.



More information about the Digitalmars-d-learn mailing list