Quick little way to spawn in some popcorns. Hit M.
This commit is contained in:
parent
d03afb31e1
commit
748528a31f
3 changed files with 17 additions and 5 deletions
|
|
@ -57,3 +57,10 @@ void Scene::render(GLFWwindow* window) {
|
|||
void Scene::cleanup() {
|
||||
shader.cleanup();
|
||||
}
|
||||
|
||||
void Scene::spawn(const std::string& name, components::Position& position) {
|
||||
things.emplace_back(
|
||||
models.at(name),
|
||||
position,
|
||||
materials.at(name));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue