Updated the display controllers to use state controls

This commit is contained in:
2023-03-01 08:43:59 -08:00
parent 2121124f79
commit 3a4c87fc37
7 changed files with 79 additions and 137 deletions

View File

@ -19,8 +19,7 @@ namespace Dawn {
protected:
bool_t projectionNeedsUpdating = true;
glm::mat4 projection;
void onRenderTargetResize(RenderTarget *target, float_t w, float_t h);
std::function<void()> evtResized;
public:
static Camera * create(Scene *scene) {
@ -89,6 +88,5 @@ namespace Dawn {
* Event triggered by the scene item when the item is added to the scene.
*/
void onStart() override;
void onDispose() override;
};
}