Pioneer
Loading...
Searching...
No Matches
Cutscene.h
Go to the documentation of this file.
1// Copyright © 2008-2024 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#ifndef _CUTSCENE_H
5#define _CUTSCENE_H
6
7#include "Color.h"
8#include "graphics/Light.h"
9#include "graphics/Renderer.h"
10
11#include <vector>
12
13namespace SceneGraph {
14 class Model;
15}
16class Shields;
17
18class Cutscene {
19public:
20 Cutscene(Graphics::Renderer *r, int width, int height) :
21 m_aspectRatio(float(width) / float(height)),
22 m_renderer(r)
23 {
24 }
25 virtual ~Cutscene() {}
26
27 virtual void Draw(float time) = 0;
28
29protected:
35 std::vector<Graphics::Light> m_lights;
36};
37
38#endif
Definition: Cutscene.h:18
Shields * m_shield
Definition: Cutscene.h:34
virtual void Draw(float time)=0
virtual ~Cutscene()
Definition: Cutscene.h:25
float m_aspectRatio
Definition: Cutscene.h:31
std::vector< Graphics::Light > m_lights
Definition: Cutscene.h:35
Graphics::Renderer * m_renderer
Definition: Cutscene.h:32
Color m_ambientColor
Definition: Cutscene.h:30
Cutscene(Graphics::Renderer *r, int width, int height)
Definition: Cutscene.h:20
SceneGraph::Model * m_model
Definition: Cutscene.h:33
Definition: Renderer.h:45
Definition: Model.h:87
Definition: Shields.h:27
Definition: CityOnPlanet.h:32
Definition: Color.h:66