Lecture 15: Per frame updates

Computer graphics in Game development

Ivan Belyavtsev

21.11.2020

Window procedure events

  • WM_KEYDOWN - each time when user press a key
  • WM_KEYUP - each time when user release a key
  • WM_PAINT - each time when the windows is redrawing [1]

On update method

  • Adjust the world variables according to modifiers
  • Recompute projection matrices
  • Measure performance [1]

On key down

  • Parse the keystroke
  • Adjust the modifiers [1]

On key up

  • Parse the keystroke
  • Reset the modifiers [1]

References

1.
Satran M., Jacobs M. Get started with Win32 and c++ [Electronic resource]. 2018. URL: https://docs.microsoft.com/en-us/windows/win32/learnwin32/learn-to-program-for-windows.
// reveal.js plugins