]> git.tdb.fi Git - libs/game.git/commit
Rework the relationship between renderers and the view
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 Jan 2025 16:20:03 +0000 (18:20 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 Jan 2025 16:30:15 +0000 (18:30 +0200)
commit503a9c6c9af26b5647c34bde45f4dd6c4a27249d
tree16d9fb56eb0e810b78004076c5f2dcff611cc8ef
parent47c85be29edadeaeacfc332044e634ccaf91aa03
Rework the relationship between renderers and the view

A renderer can't just associate itself with the view in its constructor
since stages may get activated multiple times during the application's
lifetime and the renderer for each stage is only created the first time.
source/gameview/presenter.cpp
source/gameview/presenter.h
source/gameview/renderer.cpp
source/gameview/renderer.h