c++ - Algorithm for maintaining a transformation matrix stack in graphics -


this question has answer here:

i trying write small 2d graphics library using sdl. want implement equivalent of matrix stack in opengl , implement functions pushmatrix() , popmatrix() in opengl. can coding matrix multiplications. need algorithm storing stack , managing transformations.

a stack array, or linked list, push operation creates copy of last/topmost element , appends @ end, , pop operation removes last element list/array.

using/implementing arrays/linked lists basic computer science knowledge.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

python - Received unregistered task using Celery with Django -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -