I am implementing an application in opengl es2.0. I need to use pushmatrix() and popmatrix(). We all know that this function is no more available in opengl es 2.0. I have tried to follow and implement the method given here. However I ddnt find too much success. Also we need to implement some huge number of header files for the same. Has anybody implemented this as a part of their project? If possible, can someone post some code snippet which will guide me to save and restore states of current matrices?
Share
Say you have a simple linmath library, like this:
Instead of pushing a matrix, you simply create a copy and continue work on and use that one. Poping then turns into deallocating the copy and switch back to the matrix you made the copy of.