aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-rw-r--r--src/example/rendering.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp
index 522ec0f..01794f8 100644
--- a/src/example/rendering.cpp
+++ b/src/example/rendering.cpp
@@ -30,9 +30,8 @@ int main() {
// Normal adding components
{
Color color(0, 0, 0, 0);
- Sprite & sprite
- = obj.add_component<Sprite>(make_shared<Texture>("asset/texture/img.png"),
- color, FlipSettings{false, false});
+ Sprite & sprite = obj.add_component<Sprite>(
+ make_shared<Texture>("asset/texture/img.png"), color, FlipSettings{false, false});
sprite.sorting_in_layer = 2;
sprite.order_in_layer = 1;
obj.add_component<Camera>(Color::RED);