Pioneer
Loading...
Searching...
No Matches
Cutscene.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 _CUTSCENE_H
5#define _CUTSCENE_H
6
7#include "graphics/Light.h"
8#include "graphics/Renderer.h"
9#include "libs.h"
10
11namespace SceneGraph {
12 class Model;
13}
14class Shields;
15
16class Cutscene {
17public:
18 Cutscene(Graphics::Renderer *r, int width, int height) :
19 m_aspectRatio(float(width) / float(height)),
20 m_renderer(r)
21 {
22 }
23 virtual ~Cutscene() {}
24
25 virtual void Draw(float time) = 0;
26
27protected:
33 std::vector<Graphics::Light> m_lights;
34};
35
36#endif
Definition Cutscene.h:16
Shields * m_shield
Definition Cutscene.h:32
virtual void Draw(float time)=0
virtual ~Cutscene()
Definition Cutscene.h:23
float m_aspectRatio
Definition Cutscene.h:29
std::vector< Graphics::Light > m_lights
Definition Cutscene.h:33
Graphics::Renderer * m_renderer
Definition Cutscene.h:30
Color m_ambientColor
Definition Cutscene.h:28
Cutscene(Graphics::Renderer *r, int width, int height)
Definition Cutscene.h:18
SceneGraph::Model * m_model
Definition Cutscene.h:31
Definition Renderer.h:44
Definition Model.h:88
Definition Shields.h:23
Definition CityOnPlanet.h:31
Definition Color.h:66