Pioneer
ViewController.h
Go to the documentation of this file.
1 // Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #pragma once
5 
6 class Camera;
7 class WorldView;
8 
10 public:
12  m_parentView(v) {}
13 
14  // Called when the view owning this controller becomes active
15  virtual void Activated() = 0;
16 
17  // Called when the view owning this controller becomes inactive
18  virtual void Deactivated() = 0;
19 
20  // Called every frame to update the controller before the camera is updated
21  virtual void Update() = 0;
22 
23  // Do view-specific drawing here, called after the camera has drawn the world
24  virtual void Draw(Camera *camera) = 0;
25 
26 protected:
28 };
Definition: Camera.h:80
Definition: ViewController.h:9
WorldView * m_parentView
Definition: ViewController.h:27
virtual void Update()=0
virtual void Deactivated()=0
virtual void Activated()=0
virtual void Draw(Camera *camera)=0
ViewController(WorldView *v)
Definition: ViewController.h:11
Definition: WorldView.h:30