Pioneer
Intro.h
Go to the documentation of this file.
1 // Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef _INTRO_H
5 #define _INTRO_H
6 
7 #include "Background.h"
8 #include "Cutscene.h"
9 #include "ShipType.h"
10 #include "scenegraph/ModelSkin.h"
11 
12 class Intro : public Cutscene {
13 public:
14  Intro(Graphics::Renderer *r, int width, int height);
15  ~Intro();
16  virtual void Draw(float deltaTime);
18  bool isZooming() const { return m_dist == m_zoomEnd; }
19 
20 private:
21  void Reset();
22  bool m_needReset;
23 
24  std::vector<SceneGraph::Model *> m_models;
25  SceneGraph::ModelSkin m_skin;
26 
27  float m_startTime;
28 
29  unsigned int m_modelIndex;
30  float m_zoomBegin, m_zoomEnd;
31  float m_dist;
32 
33  std::unique_ptr<Background::Container> m_background;
34 
35  int m_spinnerLeft;
36  int m_spinnerWidth;
37  float m_spinnerRatio;
38 };
39 
40 #endif
Definition: Cutscene.h:16
SceneGraph::Model * m_model
Definition: Cutscene.h:31
Definition: Renderer.h:39
Definition: Intro.h:12
~Intro()
Definition: Intro.cpp:89
Intro(Graphics::Renderer *r, int width, int height)
Definition: Intro.cpp:32
SceneGraph::Model * getCurrentModel() const
Definition: Intro.h:17
bool isZooming() const
Definition: Intro.h:18
virtual void Draw(float deltaTime)
Definition: Intro.cpp:115
Definition: ModelSkin.h:22
Definition: Model.h:94