lab5 - Transformations Stack Computer Craphics Lab 03...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Transformations Stack Computer Craphics Lab 03 Contents This section explains how to transform Objects in OpenGL • The Stack • Matrix Stack • Matrix Stack Operations • Lab exercise About the stack The stack is yet another useful mechanism. The idea is the same as in real gun magazine. Inserting a new bullet pushes back the topmost one. Only the TOPMOST bullet can be used each time. There are a few defined operations we can perform on our stack: • Push – inserts a new bullet, which is the same as the previous topmost bullet. • Pop – throws away the topmost bullet and thus the bullet below becomes the topmost one. • Load – replace the topmost bullet with a specific one. Stack application The stack is suitable for back-up and restore application. Notes: • As in real magazine, there is a limited amount of places for bullets in it. Thus, every push must be followed eventually with a pop!...
View Full Document

Page1 / 12

lab5 - Transformations Stack Computer Craphics Lab 03...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online