From 91c32cb173201ac8803a1e4452e8342969b8e484 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 29 Oct 2021 13:36:49 +0800 Subject: *GLSL test --- Data/DefaultContent/Libraries/GameLab/Engine/Math/Rect.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Data/DefaultContent/Libraries/GameLab/Engine/Math/Rect.lua (limited to 'Data/DefaultContent/Libraries') diff --git a/Data/DefaultContent/Libraries/GameLab/Engine/Math/Rect.lua b/Data/DefaultContent/Libraries/GameLab/Engine/Math/Rect.lua new file mode 100644 index 0000000..2aeb0f7 --- /dev/null +++ b/Data/DefaultContent/Libraries/GameLab/Engine/Math/Rect.lua @@ -0,0 +1,10 @@ +local Rect = GameLab.Class("GameLab.Engine.Math.Rect") + +Rect.Ctor = function(self, x, y, width, height) + self.x = x or 0 + self.y = y or 0 + self.width = width or 0 + self.height = height or 0 +end + +return Rect \ No newline at end of file -- cgit v1.1-26-g67d0