Skip navigation

On September 14th, 2017, we published revised versions of our Privacy Policy, Terms of Service and Website Use Policy and published a Cookie Policy. Your continued use of Lynda.com means you agree to these revised documents, so please take a few minutes to read and understand them.

Implement the render state machine

Implement the render state machine: Windows Power Tools: Optimizing Code
Implement the render state machine: Windows Power Tools: Optimizing Code

Now time for you to implement that Rendering State Machine by making some simple code changes to the source code of the Jigsaw Puzzle app. The optimization code changes include adding that state flag m_stateChanged as a member variable to the GameState class as well as some accessor and setter methods. Most of the code changes are properly setting the value of m_stateChanged to each input event handler i.e. OnPointerMoved. This is all done so you can add a simple if statement that dictates when to call Update, Draw and Present in order to change what is shown on screen.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 58m
Duration
6,853
Views
Show More Show Less

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now