28.08.2013 Views

Introduction to OpenGL Prof. Dr.-Ing. Lars Linsen - Faculty.jacobs ...

Introduction to OpenGL Prof. Dr.-Ing. Lars Linsen - Faculty.jacobs ...

Introduction to OpenGL Prof. Dr.-Ing. Lars Linsen - Faculty.jacobs ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Viewport Transformations<br />

• Viewport<br />

– usually same as window size<br />

– can be used <strong>to</strong> see part of the screen <strong>to</strong> which is rendered<br />

– viewport aspect ratio should be same as projection transformation or<br />

resulting image may be dis<strong>to</strong>rted<br />

glViewport(<br />

glViewport<br />

glViewport( ( x, y, width, height )<br />

Jacobs University<br />

Visualization and Computer Graphics Lab<br />

320621: Advanced Visualization Lab 48

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!