Change To OpenGL

This commit is contained in:
Mueller Wayan
2025-08-15 10:44:29 +02:00
parent 1862530728
commit a36789dd7e
101 changed files with 2981 additions and 1027 deletions
+3 -3
View File
@@ -39,7 +39,7 @@ namespace Firebird2D.Datatypes
public void Insert(T element)
{
Require.NotNull(element, nameof(element));
Require.NotNull(element, nameof(element),0);
if (!(Bounds.Contains(element.Bounds) || AllowOutOfBounds))
throw new ArgumentException(string.Format("{0} is out of Quadtreebounds", nameof(element)), nameof(element));
@@ -61,7 +61,7 @@ namespace Firebird2D.Datatypes
public bool Remove(T element)
{
Require.NotNull(element, nameof(element));
Require.NotNull(element, nameof(element),0);
Quadtree<T>? containingChild = GetContainingChild(element.Bounds);
@@ -178,7 +178,7 @@ namespace Firebird2D.Datatypes
public IEnumerable<T> FindCollisions(T element)
{
Require.NotNull(element, nameof(element));
Require.NotNull(element, nameof(element), 0);
var nodes = new Queue<Quadtree<T>>();
var collisions = new List<T>();