Explorar o código

Added Lua bindings for new IntRect utility functions.

Rainer Deyke %!s(int64=8) %!d(string=hai) anos
pai
achega
8ebfa39ce8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Source/Urho3D/LuaScript/pkgs/Math/Rect.pkg

+ 4 - 0
Source/Urho3D/LuaScript/pkgs/Math/Rect.pkg

@@ -45,6 +45,7 @@ class IntRect
 {
     IntRect();
     IntRect(int left, int top, int right, int bottom);
+    IntRect(const IntVector2& min, const IntVector2& max);
     ~IntRect();
 
     bool operator ==(const IntRect& rhs) const;
@@ -54,6 +55,9 @@ class IntRect
     int Height() const;
     Intersection IsInside(const IntVector2& point) const;
 
+    void Clip(const IntRect& rect);
+    void Merge(const IntRect& rect);
+
     int left_ @ left;
     int top_ @ top;
     int right_ @ right;