blob: 6601fda127a350e32517e86223af3fe8185b7575 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
-- Image在texture基础上增加了一些数据
local Image = GameLab.GlobalClass("GameLab.Engine.Rendering.Image")
Image.Ctor = function(self, texture)
self.texture = texture -- "atlas"
self.rect = {0, 0, 1, 1} -- 这个image在texture中的位置
self.isSlicing = false
self.slicing = {0, 0, 0, 0}
end
Image.GetWidth = function(self)
end
Image.GetHeight = function(self)
end
Image.GetSize = function(self)
end
return Image
|