aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 12:19:56 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 12:19:56 +0100
commit87c74782e486647c46f9ca4d2f857094006e563c (patch)
treec8e0b893610cb90d7bd7578c3d076b7e905c822a /src/example/rendering.cpp
parentec3601fbc17a38a44608a04f53d4e36c1bff8c96 (diff)
`make format`
Diffstat (limited to 'src/example/rendering.cpp')
-rw-r--r--src/example/rendering.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp
index e02f6a3..493169b 100644
--- a/src/example/rendering.cpp
+++ b/src/example/rendering.cpp
@@ -34,7 +34,9 @@ int main() {
}
{
Color color(0, 0, 0, 0);
- obj1.add_component<Sprite>(make_shared<Texture>("../asset/texture/second.png"), color, FlipSettings{true, true});
+ obj1.add_component<Sprite>(
+ make_shared<Texture>("../asset/texture/second.png"), color,
+ FlipSettings{true, true});
}
/*
@@ -45,7 +47,7 @@ int main() {
}
*/
- auto & sys = crepe::RenderSystem::get_instance();
+ auto & sys = crepe::AssetManager::get_instance();
auto start = std::chrono::steady_clock::now();
while (std::chrono::steady_clock::now() - start < std::chrono::seconds(5)) {
sys.update();