Hello,
i am currently writing a rpg engine in D. I recently ran into a confusing problem caused by the following:
In older OpenGL versions, especially when you only have access to ES Core 2.0 contexts, glUniformMatrix only accepts GL_FALSE as transpose argument and otherwise generates a GL_INVALID_VALUE [1]. While i can simply call transpose() on the matrix, thats extra-stuff that needs be done every time i submit matrixes to the pipeline.
Is there an alternative way?
[1] https://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml
Hello,
i am currently writing a rpg engine in D. I recently ran into a confusing problem caused by the following:
In older OpenGL versions, especially when you only have access to ES Core 2.0 contexts, glUniformMatrix only accepts GL_FALSE as transpose argument and otherwise generates a GL_INVALID_VALUE [1]. While i can simply call transpose() on the matrix, thats extra-stuff that needs be done every time i submit matrixes to the pipeline.
Is there an alternative way?
[1] https://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml