Commit beaa4b80 authored by Georg Schaefer's avatar Georg Schaefer
Browse files

add weighted companion cube to engine

parent d304cace
......@@ -10,6 +10,7 @@
#include <ecs/entity.hpp>
#include <graphics/graphics_system.hpp>
#include <rendering/rendering_system.hpp>
#include <rendering/staticmesh_component.hpp>
#include <util/config.hpp>
#include <util/logger.hpp>
#include <util/make_unique.hpp>
......@@ -27,6 +28,9 @@ namespace gdw {
audio_ = make_unique<gdw::audio>(*this);
graphics_system_ = make_unique<gdw::graphics_system>(*this);
rendering_system_ = make_unique<gdw::rendering_system>(*this);
auto& wcube = entity_manager_.emplace_back(glm::vec3(0.f), glm::angleAxis(0.f, glm::vec3(0.f)));
wcube.emplace_back<staticmesh_component>("mesh/cube.msh");
}
engine::~engine() noexcept {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment