kero 0.1.6

A simple, approachable framework for creating 2D games in Rust and/or Lua.
Documentation
---@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
function module.new(width, height, format) end

---The surface's target texture.
---@param self Surface
---@return Texture
---@nodiscard
function methods.texture(self) end

---Size of the surface.
---@param self Surface
---@return Vec2
---@nodiscard
function methods.size(self) end

---Width of the surface.
---@param self Surface
---@return integer
---@nodiscard
function methods.width(self) end

---Height of the surface.
---@param self Surface
---@return integer
---@nodiscard
function methods.height(self) end

---The surface format.
---@param self Surface
---@return TextureFormat
---@nodiscard
function methods.format(self) end

---The surface's texture.
---@param self Surface
---@return Texture
---@nodiscard
function methods.texture(self) end

return module