Quick little way to spawn in some popcorns. Hit M.

This commit is contained in:
Zed A. Shaw 2026-08-27 14:41:36 -04:00
parent d03afb31e1
commit 748528a31f
3 changed files with 17 additions and 5 deletions

View file

@ -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));
}