mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-16 22:16:53 +07:00
bind high components and modules
This commit is contained in:
31
samples/bin/library/scripts/emmy/components/camera.lua
Normal file
31
samples/bin/library/scripts/emmy/components/camera.lua
Normal 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
|
||||
Reference in New Issue
Block a user