Add a new prepareToRender() callback for renders to perform their initial window clears

This consolidates all the clearing that was strewn across the codebase.
This commit is contained in:
Cameron Gutman
2024-06-25 23:12:18 -05:00
parent 1d1fa0577b
commit e76780e105
11 changed files with 105 additions and 73 deletions
@@ -256,6 +256,12 @@ public:
return false;
}
virtual void prepareToRender() {
// Allow renderers to perform any final preparations for
// rendering after they have been selected to render. Such
// preparations might include clearing the window.
}
// Allow renderers to expose their type
enum class RendererType {
Unknown,