37 lines
718 B
C++
37 lines
718 B
C++
// Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
|
|
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
|
|
|
|
#ifndef _CUTSCENE_H
|
|
#define _CUTSCENE_H
|
|
|
|
#include "graphics/Light.h"
|
|
#include "graphics/Renderer.h"
|
|
#include "libs.h"
|
|
|
|
namespace SceneGraph {
|
|
class Model;
|
|
}
|
|
class Shields;
|
|
|
|
class Cutscene {
|
|
public:
|
|
Cutscene(Graphics::Renderer *r, int width, int height) :
|
|
m_aspectRatio(float(width) / float(height)),
|
|
m_renderer(r)
|
|
{
|
|
}
|
|
virtual ~Cutscene() {}
|
|
|
|
virtual void Draw(float time) = 0;
|
|
|
|
protected:
|
|
Color m_ambientColor;
|
|
float m_aspectRatio;
|
|
Graphics::Renderer *m_renderer;
|
|
SceneGraph::Model *m_model;
|
|
Shields *m_shield;
|
|
std::vector<Graphics::Light> m_lights;
|
|
};
|
|
|
|
#endif
|