Skip to Content
Mathematics for Game Programming and Computer Graphics
book

Mathematics for Game Programming and Computer Graphics

by Penny de Byl
November 2022
Intermediate to advanced
444 pages
9h 53m
English
Packt Publishing
Content preview from Mathematics for Game Programming and Computer Graphics

6

Updating and Drawing the Graphics Environment

All objects in a graphics environment undergo a cyclical process of being updated and then drawn. This occurs in the main game loop and is synchronized by a frame rate clock. Building this ability into our graphics engine and application at this point is critical for further functionality, such as physics and other interactivity, to be added down the line. Adding a strong foundation to facilitate this early on is crucial in order to succeed in graphics processing and rendering down the line.

Herein, we will examine the purpose of the main game loop and add a clock to regulate the frame rate in our project. Coordinated with this loop are updates to objects so that they can become whatever we need ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

3D Math Primer for Graphics and Game Development, 2nd Edition

3D Math Primer for Graphics and Game Development, 2nd Edition

Fletcher Dunn, Ian Parberry

Publisher Resources

ISBN: 9781801077330Supplemental Content