-- AUTO GENERATED. DO NOT MODIFY!
---@meta

---@class Tex2D
Tex2D = {}

---@param sx integer
---@param sy integer
---@param format TexFormat
---@return Tex2D
function Tex2D.Create(sx, sy, format) end

---@param name string
---@return Tex2D
function Tex2D.Load(name) end

---@return Tex2D
function Tex2D:clone() end

---@return Tex2D
function Tex2D.ScreenCapture() end

---@param path string
function Tex2D:save(path) end

function Tex2D:pop() end

function Tex2D:push() end

---@param level integer
function Tex2D:pushLevel(level) end

---@param r number
---@param g number
---@param b number
---@param a number
function Tex2D:clear(r, g, b, a) end

---@return Tex2D
function Tex2D:deepClone() end

function Tex2D:genMipmap() end

---@param pf PixelFormat
---@param df DataFormat
---@return Bytes
function Tex2D:getDataBytes(pf, df) end

---@return TexFormat
function Tex2D:getFormat() end

---@return integer
function Tex2D:getHandle() end

---@return Vec2i
function Tex2D:getSize() end

---@param level integer
---@return Vec2i
function Tex2D:getSizeLevel(level) end

---@param factor number
function Tex2D:setAnisotropy(factor) end

---@param data Bytes
---@param pf PixelFormat
---@param df DataFormat
function Tex2D:setDataBytes(data, pf, df) end

---@param filter TexFilter
function Tex2D:setMagFilter(filter) end

---@param filter TexFilter
function Tex2D:setMinFilter(filter) end

---@param minLevel integer
---@param maxLevel integer
function Tex2D:setMipRange(minLevel, maxLevel) end

---@param x integer
---@param y integer
---@param r number
---@param g number
---@param b number
---@param a number
function Tex2D:setTexel(x, y, r, g, b, a) end

---@param mode TexWrapMode
function Tex2D:setWrapMode(mode) end

