-
Book Overview & Buying
-
Table Of Contents
Mastering C++ Game Animation Programming
By :
The main purpose of the current model viewer application is to view model instances. But, next to pure model viewing, adjusting instance properties and settings will become a larger part of the application throughout the book. And changing settings can go wrong in many ways. A solution to preview a change sounds like a good feature to add.
A simple rollback method would allow us to accept a change to the instance setting, or to revert the same settings to the previous values. We could experiment with the values, try to move the instance to the correct destination, or adjust other parameters to fit our needs. When we are happy with the result, we push the Apply button, and the instance settings are made permanent. The same workflow can be used for the next instance, and so on, until we have placed all instances in the way we imagined.
First, we add two new private members to the...