aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-20 14:01:31 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-20 14:01:31 +0100
commit02845c3d25130e9473604cb2eeee42a7a7a8eadf (patch)
tree71969b17161d13d044d033d0ee7fd47deadb6575 /src/example/rendering.cpp
parentd79148947bc43764b041687b7c6ad2d6c944f70b (diff)
`make format`
Diffstat (limited to 'src/example/rendering.cpp')
-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);