2022-08-19 04:20:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-08-30 23:39:24 +00:00
|
|
|
#include "../../gfx/model.h"
|
|
|
|
#include "../../event/event.h"
|
2022-08-19 04:20:53 +00:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace simpleengine {
|
|
|
|
/**
|
|
|
|
* @brief A Model is a object that will be shown on the screen by a renderer.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class Component : public simpleengine::Event {
|
2022-08-30 23:39:24 +00:00
|
|
|
private:
|
|
|
|
static uint32_t incrementing_handle;
|
|
|
|
uint32_t handle;
|
2022-08-19 04:20:53 +00:00
|
|
|
public:
|
2022-08-30 23:39:24 +00:00
|
|
|
Component() {
|
|
|
|
handle = incrementing_handle++;
|
|
|
|
}
|
2022-08-19 04:20:53 +00:00
|
|
|
|
2022-08-30 23:39:24 +00:00
|
|
|
uint32_t get_handle() {
|
|
|
|
return handle;
|
2022-08-19 04:20:53 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 23:39:24 +00:00
|
|
|
virtual void update(const float& delta_time) override {
|
|
|
|
std::cout << "Component update" << std::endl;
|
2022-08-19 04:20:53 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|