---@meta ---@class TextureBase : Region TextureBase = { --- Returns the atlas for the texture. --- @return string atlas The atlas of the texture. --- @example --- local atlas = myTexture:GetAtlas() GetAtlas = function(self) end, --- Returns the blend mode of the texture. --- @return string blendMode The blend mode of the texture. --- @example --- local blendMode = myTexture:GetBlendMode() GetBlendMode = function(self) end, --- Returns the desaturation level of the texture. --- @return number desaturation The desaturation level of the texture. --- @example --- local desaturation = myTexture:GetDesaturation() GetDesaturation = function(self) end, --- Returns true if the texture is tiling horizontally. --- @return boolean tiling True if the texture is tiling horizontally. --- @example --- local isTiling = myTexture:GetHorizTile() GetHorizTile = function(self) end, --- Returns the rotation of the texture. --- @return number radians The rotation in radians. --- @return table normalizedRotationPoint The normalized rotation point. --- @example --- local radians, rotationPoint = myTexture:GetRotation() GetRotation = function(self) end, --- Returns the texture space coordinates of the texture. --- @return number ULx The upper-left x coordinate. --- @return number ULy The upper-left y coordinate. --- @return number LLx The lower-left x coordinate. --- @return number LLy The lower-left y coordinate. --- @return number URx The upper-right x coordinate. --- @return number URy The upper-right y coordinate. --- @return number LRx The lower-right x coordinate. --- @return number LRy The lower-right y coordinate. --- @example --- local ULx, ULy, LLx, LLy, URx, URy, LRx, LRy = myTexture:GetTexCoord() GetTexCoord = function(self) end, --- Returns the texel snapping bias for the texture. --- @return number bias The texel snapping bias. --- @example --- local bias = myTexture:GetTexelSnappingBias() GetTexelSnappingBias = function(self) end, --- Returns the FileID for the texture. --- @return number textureFile The FileID of the texture. --- @example --- local textureFile = myTexture:GetTexture() GetTexture = function(self) end, --- Returns the FileID for the texture. --- @return number textureFile The FileID of the texture. --- @example --- local textureFile = myTexture:GetTextureFileID() GetTextureFileID = function(self) end, --- Returns the FileID for the texture. --- @return number textureFile The FileID of the texture. --- @example --- local textureFile = myTexture:GetTextureFilePath() GetTextureFilePath = function(self) end, --- Returns true if the texture is tiling vertically. --- @return boolean tiling True if the texture is tiling vertically. --- @example --- local isTiling = myTexture:GetVertTile() GetVertTile = function(self) end, --- Returns a vertex offset for the texture. --- @param vertexIndex number The index of the vertex. --- @return number offsetX The x offset of the vertex. --- @return number offsetY The y offset of the vertex. --- @example --- local offsetX, offsetY = myTexture:GetVertexOffset(1) GetVertexOffset = function(self, vertexIndex) end, --- Returns true if a blocking load is requested. --- @return boolean blocking True if a blocking load is requested. --- @example --- local isBlocking = myTexture:IsBlockingLoadRequested() IsBlockingLoadRequested = function(self) end, --- Returns true if the texture is desaturated. --- @return boolean desaturated True if the texture is desaturated. --- @example --- local isDesaturated = myTexture:IsDesaturated() IsDesaturated = function(self) end, --- Returns true if the texture is snapping to the pixel grid. --- @return boolean snap True if the texture is snapping to the pixel grid. --- @example --- local isSnapping = myTexture:IsSnappingToPixelGrid() IsSnappingToPixelGrid = function(self) end, --- Sets the texture to an atlas. --- @param atlas string The atlas to set. --- @param useAtlasSize boolean? Optional. Whether to use the atlas size. --- @param filterMode string? Optional. The filter mode to use. --- @param resetTexCoords boolean? Optional. Whether to reset texture coordinates. --- @example --- myTexture:SetAtlas("MyAtlas", true) SetAtlas = function(self, atlas, useAtlasSize, filterMode, resetTexCoords) end, --- Sets the blend mode of the texture. --- @param blendMode string The blend mode to set. --- @example --- myTexture:SetBlendMode("ADD") SetBlendMode = function(self, blendMode) end, --- Sets whether blocking loads are requested. --- @param blocking boolean? Optional. True to request blocking loads. --- @example --- myTexture:SetBlockingLoadsRequested(true) SetBlockingLoadsRequested = function(self, blocking) end, --- Sets the texture to a solid color. --- @param colorR number The red component of the color. --- @param colorG number The green component of the color. --- @param colorB number The blue component of the color. --- @param a number? Optional. The alpha component of the color. --- @example --- myTexture:SetColorTexture(1, 0, 0) -- Set to red SetColorTexture = function(self, colorR, colorG, colorB, a) end, --- Sets the texture to be desaturated. --- @param desaturated boolean? Optional. True to desaturate the texture. --- @example --- myTexture:SetDesaturated(true) SetDesaturated = function(self, desaturated) end, --- Sets the desaturation level of the texture. --- @param desaturation number The desaturation level to set. --- @example --- myTexture:SetDesaturation(0.5) -- Set to 50% desaturation SetDesaturation = function(self, desaturation) end, --- Sets a gradient color shading for the texture. --- @param orientation string The orientation of the gradient. --- @param minColor table The minimum color. --- @param maxColor table The maximum color. --- @example --- myTexture:SetGradient("HORIZONTAL", {1, 0, 0}, {0, 0, 1}) -- Red to Blue SetGradient = function(self, orientation, minColor, maxColor) end, --- Sets whether the texture should tile horizontally. --- @param tiling boolean? Optional. True to enable horizontal tiling. --- @example --- myTexture:SetHorizTile(true) SetHorizTile = function(self, tiling) end, --- Applies a mask to the texture. --- @param file string The file path of the mask. --- @example --- myTexture:SetMask("Interface\\Textures\\Mask") SetMask = function(self, file) end, --- Applies a rotation to the texture. --- @param radians number The rotation in radians. --- @param normalizedRotationPoint table? Optional. The normalized rotation point. --- @example --- myTexture:SetRotation(math.rad(45)) -- Rotate 45 degrees SetRotation = function(self, radians, normalizedRotationPoint) end, --- Sets the texture to snap to the pixel grid. --- @param snap boolean? Optional. True to enable snapping. --- @example --- myTexture:SetSnapToPixelGrid(true) SetSnapToPixelGrid = function(self, snap) end, --- Sets the coordinates for cropping or transforming the texture. --- @param left number The left coordinate. --- @param right number The right coordinate. --- @param bottom number The bottom coordinate. --- @param top number The top coordinate. --- @example --- myTexture:SetTexCoord(0, 1, 0, 1) -- Full texture SetTexCoord = function(self, left, right, bottom, top) end, --- Sets the texel snapping bias for the texture. --- @param bias number The texel snapping bias to set. --- @example --- myTexture:SetTexelSnappingBias(0.5) SetTexelSnappingBias = function(self, bias) end, --- Sets the texture to an image. --- @param textureAsset string The texture asset to set. --- @param wrapModeHorizontal string? Optional. The horizontal wrap mode. --- @param wrapModeVertical string? Optional. The vertical wrap mode. --- @param filterMode string? Optional. The filter mode. --- @example --- myTexture:SetTexture("Interface\\Textures\\MyTexture") SetTexture = function(self, textureAsset, wrapModeHorizontal, wrapModeVertical, filterMode) end, --- Sets whether the texture should tile vertically. --- @param tiling boolean? Optional. True to enable vertical tiling. --- @example --- myTexture:SetVertTile(true) SetVertTile = function(self, tiling) end, --- Sets a vertex offset for the texture. --- @param vertexIndex number The index of the vertex. --- @param offsetX number The x offset to set. --- @param offsetY number The y offset to set. --- @example --- myTexture:SetVertexOffset(1, 5, 5) SetVertexOffset = function(self, vertexIndex, offsetX, offsetY) end, }