Skip to content

Commit 832dfe3

Browse files
committed
fix format
1 parent db10b16 commit 832dfe3

25 files changed

+42
-33
lines changed

bin/gf2_tmx_display.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#include <gf2/graphics/Entity.h>
1515
#include <gf2/graphics/RenderManager.h>
1616
#include <gf2/graphics/RenderRecorder.h>
17-
#include <gf2/graphics/Scene.h>
18-
#include <gf2/graphics/SceneManager.h>
1917
#include <gf2/graphics/RichMap.h>
2018
#include <gf2/graphics/RichMapRenderer.h>
19+
#include <gf2/graphics/Scene.h>
20+
#include <gf2/graphics/SceneManager.h>
2121
#include <gf2/graphics/Zoom.h>
2222

2323
namespace {

examples/ninepatch.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// Copyright (c) 2023 Julien Bernard
33
#include <cstdlib>
44

5+
#include <gf2/graphics/NinePatchEntity.h>
56
#include <gf2/graphics/Scene.h>
67
#include <gf2/graphics/SceneManager.h>
7-
#include <gf2/graphics/NinePatchEntity.h>
88

99
#include "config.h"
1010

games/HOME/bits/WorldScene.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
#include <gf2/audio/Music.h>
77
#include <gf2/audio/Sound.h>
8+
#include <gf2/framework/GraphicsPhysicsDebug.h>
89
#include <gf2/graphics/ActionGroup.h>
910
#include <gf2/graphics/Scene.h>
1011
#include <gf2/graphics/TextEntity.h>
1112
#include <gf2/physics/PhysicsWorld.h>
12-
#include <gf2/framework/GraphicsPhysicsDebug.h>
1313

1414
#include "BackpackEntity.h"
1515
#include "HeroEntity.h"

include/gf2/core/Fixed.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace gf {
1313
template<typename T>
1414
struct LargerType;
1515

16+
// clang-format off
1617
template<>
1718
struct LargerType<int8_t> { using type = int16_t; };
1819
template<>
@@ -25,6 +26,7 @@ namespace gf {
2526
struct LargerType<uint16_t> { using type = uint32_t; };
2627
template<>
2728
struct LargerType<uint32_t> { using type = uint64_t; };
29+
// clang-format on
2830

2931
template<typename T>
3032
using Larger = typename LargerType<T>::type;
@@ -107,7 +109,7 @@ namespace gf {
107109
}
108110

109111
private:
110-
struct RawType {};
112+
struct RawType { };
111113
static constexpr RawType Raw = {};
112114

113115
constexpr Fixed(T raw, [[maybe_unused]] RawType tag)

include/gf2/core/Range.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,12 @@ namespace gf {
523523
{
524524
}
525525

526-
void operator++() { ++m_index; ++m_iterator; }
526+
void operator++()
527+
{
528+
++m_index;
529+
++m_iterator;
530+
}
531+
527532
auto operator*() { return std::tie(m_index, *m_iterator); }
528533
bool operator!=(SentinelType other) const { return m_iterator != other; }
529534

include/gf2/core/SpriteSheet.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#include <string>
99

1010
#include "CoreApi.h"
11+
#include "NinePatchData.h"
1112
#include "Rect.h"
1213
#include "SpriteData.h"
13-
#include "NinePatchData.h"
1414

1515
namespace gf {
1616

@@ -37,4 +37,3 @@ namespace gf {
3737
}
3838

3939
#endif // GF_SPRITE_SHEET_H
40-

include/gf2/framework/GraphicsPhysicsDebug.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#ifndef GF_GRAPHICS_PHYSICS_DEBUG_H
22
#define GF_GRAPHICS_PHYSICS_DEBUG_H
33

4-
#include <gf2/graphics/Entity.h>
54
#include <gf2/graphics/Curve.h>
5+
#include <gf2/graphics/Entity.h>
66
#include <gf2/graphics/Shape.h>
7-
87
#include <gf2/physics/PhysicsDebug.h>
98
#include <gf2/physics/PhysicsWorld.h>
109

include/gf2/graphics/Animation.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
#include <gf2/core/Rect.h>
1313
#include <gf2/core/Time.h>
1414

15+
#include "AnimationRuntime.h"
1516
#include "Buffer.h"
1617
#include "GraphicsApi.h"
1718
#include "RenderObject.h"
18-
#include "AnimationRuntime.h"
1919

2020
namespace gf {
2121
class Texture;
@@ -41,7 +41,6 @@ namespace gf {
4141
Time m_current_time;
4242
};
4343

44-
4544
class GF_GRAPHICS_API AnimationGraphics {
4645
public:
4746
AnimationGraphics(std::vector<const Texture*> textures, const AnimationData& data, RenderManager* render_manager);

include/gf2/graphics/AnimationGroup.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
#include <gf2/core/Id.h>
1111
#include <gf2/core/Time.h>
1212

13+
#include "AnimationRuntime.h"
1314
#include "Buffer.h"
1415
#include "GraphicsApi.h"
1516
#include "RenderObject.h"
16-
#include "AnimationRuntime.h"
1717

1818
namespace gf {
1919
class Texture;
@@ -71,7 +71,6 @@ namespace gf {
7171
std::map<Id, details::AnimationGraphicsRuntime> m_animations;
7272
};
7373

74-
7574
class GF_GRAPHICS_API AnimationGroup {
7675
public:
7776
AnimationGroup(std::vector<const Texture*> textures, const AnimationGroupData& data, RenderManager* render_manager);

include/gf2/graphics/AnimationRuntime.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include <gf2/core/ResourceManager.h>
1010
#include <gf2/core/Time.h>
1111

12-
#include "Vertex.h"
1312
#include "Texture.h"
13+
#include "Vertex.h"
1414

1515
namespace gf {
1616
class Buffer;
@@ -42,7 +42,6 @@ namespace gf {
4242
std::vector<uint16_t> indices;
4343
};
4444

45-
4645
template<typename Resource>
4746
std::vector<const Texture*> load_animation_resources(const Resource& resource, ResourceManager* resource_manager)
4847
{

0 commit comments

Comments
 (0)