mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-01-04 17:21:01 +07:00
32 lines
531 B
Lua
32 lines
531 B
Lua
---@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
|