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
53
54
55
---@meta
---@class (exact) Surface: SurfaceMethods
---@class SurfaceClass: SurfaceMethods
local module =
---@class SurfaceMethods
local methods =
---Create a new surface. If no format is provided, will default to `"rgba8"`.
---@param width integer
---@param height integer
---@param format TextureFormat?
---@return Surface
---@nodiscard
---The surface's target texture.
---@param self Surface
---@return Texture
---@nodiscard
---Size of the surface.
---@param self Surface
---@return Vec2
---@nodiscard
---Width of the surface.
---@param self Surface
---@return integer
---@nodiscard
---Height of the surface.
---@param self Surface
---@return integer
---@nodiscard
---The surface format.
---@param self Surface
---@return TextureFormat
---@nodiscard
---The surface's texture.
---@param self Surface
---@return Texture
---@nodiscard
return module