2021-11-27 19:16:41 +00:00
|
|
|
#pragma once
|
2022-09-16 15:14:38 +00:00
|
|
|
|
2021-11-21 06:23:53 +00:00
|
|
|
#include "event/event.h"
|
|
|
|
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
2022-09-16 15:14:38 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2021-11-21 06:23:53 +00:00
|
|
|
namespace simpleengine {
|
|
|
|
class Renderable : public simpleengine::Event {
|
|
|
|
private:
|
2022-08-19 04:20:53 +00:00
|
|
|
using Super = simpleengine::Event;
|
2021-11-21 06:23:53 +00:00
|
|
|
public:
|
2022-08-19 04:20:53 +00:00
|
|
|
Renderable() = default;
|
2021-11-21 06:23:53 +00:00
|
|
|
virtual ~Renderable() = default;
|
2022-08-19 04:20:53 +00:00
|
|
|
|
2022-10-15 03:17:22 +00:00
|
|
|
virtual void render(const float& interpolate_alpha, const float& frame_time) = 0;
|
2021-11-21 06:23:53 +00:00
|
|
|
};
|
2021-11-27 19:16:41 +00:00
|
|
|
}
|