1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---@meta
---@class (exact) SubTexture: SubTextureMethods
---@class SubTextureClass: SubTextureMethods
local module =
---@class SubTextureMethods
local methods =
---Create a new subtexture from the rectangular sub-region of a texture's pixels.
---You can also provide a rendering offset and virtual size for the subtexture.
---@param texture Texture
---@param rect Rect
---@param offset Vec2?
---@param size Vec2?
-- ---The subtexture's texture.
-- ---@param self SubTexture
-- ---@return Texture
-- ---@nodiscard
-- function methods.texture(self) end
---The subtexture's source rectangle.
---@param self SubTexture
---@return Rect
---@nodiscard
---The subtexture's render offset.
---@param self SubTexture
---@return Vec2
---@nodiscard
---The subtexture's virtual size.
---@param self SubTexture
---@return Vec2
---@nodiscard
---The subtexture's texture coordinates.
---@param self SubTexture
---@return Vec2
---@return Vec2
---@return Vec2
---@return Vec2
---@nodiscard
return module