mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Add files via upload
This commit is contained in:
parent
a5087cf221
commit
8130b0626f
17 changed files with 95 additions and 39 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include <filesystem>
|
||||
#include <unordered_set>
|
||||
#include <functional>
|
||||
#define GLEW_STATIC
|
||||
|
||||
#include "audio/Audio.h"
|
||||
|
|
@ -44,6 +45,11 @@
|
|||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
void addWorldGenerators() {
|
||||
WorldGenerators::addGenerator<DefaultWorldGenerator>("core:default");
|
||||
WorldGenerators::addGenerator<FlatWorldGenerator>("core:flat");
|
||||
}
|
||||
|
||||
Engine::Engine(EngineSettings& settings, EnginePaths* paths)
|
||||
: settings(settings), paths(paths)
|
||||
{
|
||||
|
|
@ -86,11 +92,6 @@ Engine::Engine(EngineSettings& settings, EnginePaths* paths)
|
|||
addWorldGenerators();
|
||||
}
|
||||
|
||||
void addWorldGenerators() {
|
||||
WorldGenerators::addWorldGenerator<DefaultWorldGenerator>("core:default");
|
||||
WorldGenerators::addWorldGenerator<FlatWorldGenerator>("core:flat");
|
||||
}
|
||||
|
||||
void Engine::updateTimers() {
|
||||
frame++;
|
||||
double currentTime = Window::time();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue