Pioneer
Intro.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 #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; }
20 
21 private:
22  void Reset();
23  bool m_needReset;
24 
25  std::vector<SceneGraph::Model *> m_models;
26  SceneGraph::ModelSkin m_skin;
27 
28  float m_startTime;
29 
30  unsigned int m_modelIndex;
31  float m_zoomBegin, m_zoomEnd;
32  float m_dist;
33 
34  std::unique_ptr<Background::Container> m_background;
35 
36  int m_spinnerLeft;
37  int m_spinnerWidth;
38  float m_spinnerRatio;
39 };
40 
41 #endif
Definition: Cutscene.h:16
SceneGraph::Model * m_model
Definition: Cutscene.h:31
Definition: Renderer.h:44
Definition: Intro.h:12
~Intro()
Definition: Intro.cpp:89
Intro(Graphics::Renderer *r, int width, int height)
Definition: Intro.cpp:33
SceneGraph::Model * getCurrentModel() const
Definition: Intro.h:17
bool isZooming() const
Definition: Intro.h:18
void RefreshBackground(Graphics::Renderer *r)
Definition: Intro.cpp:95
virtual void Draw(float deltaTime)
Definition: Intro.cpp:122
Definition: ModelSkin.h:22
Definition: Model.h:88