mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Introduced Content, ContentIndices, no more integer ids hardcoded, common refactor
This commit is contained in:
parent
f2f9343737
commit
3b03464d27
35 changed files with 472 additions and 279 deletions
|
|
@ -41,7 +41,8 @@ using std::filesystem::path;
|
|||
using glm::vec3;
|
||||
using gui::GUI;
|
||||
|
||||
Engine::Engine(EngineSettings& settings) : settings(settings) {
|
||||
Engine::Engine(EngineSettings& settings, Content* content)
|
||||
: settings(settings), content(content) {
|
||||
Window::initialize(settings.display);
|
||||
|
||||
assets = new Assets();
|
||||
|
|
@ -128,4 +129,8 @@ Assets* Engine::getAssets() {
|
|||
|
||||
void Engine::setScreen(shared_ptr<Screen> screen) {
|
||||
this->screen = screen;
|
||||
}
|
||||
|
||||
const Content* Engine::getContent() const {
|
||||
return content;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue