Skip to content

Commit 368527b

Browse files
committed
copyright
1 parent 11e1cb9 commit 368527b

125 files changed

Lines changed: 649 additions & 150 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Box2D.NET.Samples/Extensions/ListExtensions.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Collections.Generic;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
using System.Collections.Generic;
26

37
namespace Box2D.NET.Samples.Extensions;
48

@@ -19,4 +23,4 @@ public static void Resize<T>(this List<T> list, int count)
1923
list.RemoveRange(count, list.Count - count);
2024
}
2125
}
22-
}
26+
}

src/Box2D.NET.Samples/Helpers/GlfwHelpers.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using Silk.NET.GLFW;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
using Silk.NET.GLFW;
26

37
namespace Box2D.NET.Samples.Helpers;
48

@@ -18,4 +22,4 @@ public static unsafe InputAction GetKey(SampleAppContext context, Keys key)
1822
default: return InputAction.Release;
1923
}
2024
}
21-
}
25+
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
using System.Runtime.InteropServices;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
using System.Runtime.InteropServices;
26

37
namespace Box2D.NET.Samples.Helpers;
48

59
public readonly struct SizeOf<T> where T : unmanaged
610
{
711
public static readonly uint Size = (uint)Marshal.SizeOf<T>();
812
}
13+

src/Box2D.NET.Samples/Helpers/SvgParser.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
using System;
26
using System.Diagnostics;
37
using System.Globalization;
48

@@ -184,4 +188,4 @@ private static bool Sscanf(string svgPath, ref int ptrIndex, out float value)
184188
var segment = svgPath.Substring(startIdx, ptrIndex - startIdx);
185189
return float.TryParse(segment, CultureInfo.InvariantCulture, out value);
186190
}
187-
}
191+
}

src/Box2D.NET.Samples/Primitives/BodyUserData.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
namespace Box2D.NET.Samples.Primitives;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
namespace Box2D.NET.Samples.Primitives;
26

37
public static class BodyUserData
48
{
@@ -18,4 +22,4 @@ internal BodyUserData()
1822
{
1923

2024
}
21-
}
25+
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
using Box2D.NET.Samples.Samples.Collisions;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
using Box2D.NET.Samples.Samples.Collisions;
26

37
namespace Box2D.NET.Samples.Primitives;
48

59
public struct DynamicTreeContext
610
{
711
public DynamicTree tree;
812
}
13+

src/Box2D.NET.Samples/SampleAppContext.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.IO;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
using System.IO;
26
using System.Runtime.CompilerServices;
37
using Silk.NET.GLFW;
48
using Silk.NET.OpenGL;
@@ -55,4 +59,4 @@ private SampleAppContext(string signature, Glfw glfw)
5559
camera = new Camera();
5660
draw = new Draw();
5761
}
58-
}
62+
}

src/Box2D.NET.Samples/Samples/Benchmarks/BenchmarkShapeDistance.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Numerics;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
using System.Numerics;
26
using ImGuiNET;
37
using static Box2D.NET.B2MathFunction;
48
using static Box2D.NET.B2Hulls;
@@ -162,4 +166,4 @@ public override void Draw(Settings settings)
162166
m_context.draw.DrawSegment(output.pointA, output.pointA + 0.5f * output.normal, B2HexColor.b2_colorYellow);
163167
DrawTextLine($"distance = {output.distance}");
164168
}
165-
}
169+
}

src/Box2D.NET.Samples/Samples/Characters/Mover.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-FileCopyrightText: 2022 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
23
// SPDX-License-Identifier: MIT
34

45
using System.Diagnostics;
@@ -367,4 +368,4 @@ public override void Draw(Settings settings)
367368

368369
m_context.camera.m_center.X = m_transform.p.X;
369370
}
370-
}
371+
}

src/Box2D.NET.Samples/Samples/Continuous/SegmentSlide.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using static Box2D.NET.B2Types;
1+
// SPDX-FileCopyrightText: 2025 Erin Catto
2+
// SPDX-FileCopyrightText: 2025 Ikpil Choi(ikpil@naver.com)
3+
// SPDX-License-Identifier: MIT
4+
5+
using static Box2D.NET.B2Types;
26
using static Box2D.NET.B2Bodies;
37
using static Box2D.NET.B2Shapes;
48
using static Box2D.NET.B2Distances;
@@ -61,4 +65,4 @@ public override void Draw(Settings settings)
6165
m_textLine += m_textIncrement;
6266
#endif
6367
}
64-
}
68+
}

0 commit comments

Comments
 (0)