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

7

Interactions with the Keyboard and Mouse for Dynamic Graphics Programs

For computer games, graphics applications, and mobile applications, the mouse is a key way of interacting with graphics windows. In this case, by mouse, I also include finger touches as they are processed in almost the same way. The mouse is a pointer that moves across the screen and represents a pixel location (usually at the tip of the arrow if that is the cursor you are using). This location is represented as an (x, y) coordinate in the 2D plane, that is, the graphics window.

Although technically you could create graphics applications without the need for interaction, having these peripherals available becomes useful when testing out an application, moving around in ...

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