bind high components and modules

This commit is contained in:
2019-11-14 05:51:38 +07:00
parent c1f593c567
commit b662dc3ae6
41 changed files with 1582 additions and 439 deletions

View File

@@ -0,0 +1,31 @@
---@class camera
local camera = {
---@type boolean
enabled = true,
---@type boolean
disabled = false,
---@type integer
depth = 0,
---@type rect
viewport = rect.zero(),
---@type m4f
projection = m4f.identity(),
---@type color
background = color.white()
}
---@overload fun(self: camera)
---@param self camera
function camera.enable(self) end
---@overload fun(self: camera)
---@param self camera
function camera.disable(self) end
---@type camera
_G.camera = _G.camera or camera