Is there a way to completely use ONLY your own matrices in OpenGL ?
I’m using OpenGL with C++, and I am implementing my own matrix class. I will load an object and then do various transitions with it using my own matrices and my own matrix multiplication/etc. routines.
I looked on the web, and there is to specify your own matrices, but I haven’t found a good source.
So, the thing I need to know is: is there a way to completely avoid OpenGL’s matrix operations and use your own ?
In the Red book,they mention that
glLoadMatrix*() and glMultMatrix*()
allow you to specify any transformation matrix directly and then to multiply the current matrix by that specified matrix.
Might be what you’re looking for.
The other way would be to apply the matrix
yourself to each vertex before drawing.
I figured it out ! those were the commands I was looking for.
However, you got me interested – how do I apply
How can I apply a matrix to each vertice before drawing ?
I’ll need that too, since I will need to draw an object, but before I’ll draw it I’ll need to transform it …