Thread overview | |||||
---|---|---|---|---|---|
|
October 04, 2015 gl3n does not seem to have an ortho function like glm. Any replacements? | ||||
---|---|---|---|---|
| ||||
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. |
October 05, 2015 Re: gl3n does not seem to have an ortho function like glm. Any replacements? | ||||
---|---|---|---|---|
| ||||
Posted in reply to WhatMeWorry | On Sunday, 4 October 2015 at 21:30:43 UTC, WhatMeWorry wrote: > 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. https://github.com/Dav1dde/gl3n/blob/master/gl3n/linalg.d#L1284 |
October 05, 2015 Re: gl3n does not seem to have an ortho function like glm. Any replacements? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rene Zwanenburg | On Monday, 5 October 2015 at 00:05:42 UTC, Rene Zwanenburg wrote:
> On Sunday, 4 October 2015 at 21:30:43 UTC, WhatMeWorry wrote:
>> 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.
>
> https://github.com/Dav1dde/gl3n/blob/master/gl3n/linalg.d#L1284
Thanks! I did search all over before posting. I went back to GitHub in the search field and typed ortho. Got nothing. Typed in orthographic and got hits.
|
Copyright © 1999-2021 by the D Language Foundation