TextureBase

From Warcraft Wiki
Jump to navigation Jump to search

Defined Methods

TextureBase:ClearTextureSlice()
TextureBase:GetAtlas() : atlas - Returns the atlas for the texture.
TextureBase:GetBlendMode() : blendMode - Returns the blend mode of the texture.
TextureBase:GetDesaturation() : desaturation - Returns the desaturation level of the texture.
TextureBase:GetHorizTile() : tiling - Returns true if the texture is tiling horizontally.
TextureBase:GetRotation() : radians, normalizedRotationPoint - Returns the rotation of the texture.
TextureBase:GetTexCoord() : ULx, ULy, LLx, LLy, URx, URy, LRx, LRy - Returns the texture space coordinates of the texture.
TextureBase:GetTexelSnappingBias() : bias - Returns the texel snapping bias for the texture.
TextureBase:GetTexture() : textureFile - Returns the FileID for the texture.
TextureBase:GetTextureFileID() : textureFile - Returns the FileID for the texture.
TextureBase:GetTextureFilePath() : textureFile - Returns the FileID for the texture.
TextureBase:GetTextureSliceMargins() : left, top, right, bottom
TextureBase:GetTextureSliceMode() : sliceMode
TextureBase:GetVertTile() : tiling - Returns true if the texture is tiling vertically.
TextureBase:GetVertexOffset(vertexIndex) : offsetX, offsetY - Returns a vertex offset for the texture.
TextureBase:IsBlockingLoadRequested() : blocking
TextureBase:IsDesaturated() : desaturated - Returns true if the texture is desaturated.
TextureBase:IsSnappingToPixelGrid() : snap - Returns true if the texture is snapping to the pixel grid.
TextureBase:SetAtlas(atlas [, useAtlasSize, filterMode, resetTexCoords]) - Sets the texture to an atlas.
TextureBase:SetBlendMode(blendMode) - Sets the blend mode of the texture.
TextureBase:SetBlockingLoadsRequested([blocking])
TextureBase:SetColorTexture(colorR, colorG, colorB [, a]) - Sets the texture to a solid color.
TextureBase:SetDesaturated([desaturated]) - Sets the texture to be desaturated.
TextureBase:SetDesaturation(desaturation) - Sets the desaturation level of the texture.
TextureBase:SetGradient(orientation, minColor, maxColor) - Sets a gradient color shading for the texture.
TextureBase:SetHorizTile([tiling]) - Sets whether the texture should tile horizontally.
TextureBase:SetMask(file) - Applies a mask to the texture.
TextureBase:SetRotation(radians [, normalizedRotationPoint]) - Applies a rotation to the texture.
TextureBase:SetSnapToPixelGrid([snap]) - Sets the texture to snap to the pixel grid.
TextureBase:SetTexCoord(left, right, top, bottom) - Sets the coordinates for cropping or transforming the texture.
TextureBase:SetTexelSnappingBias(bias) - Returns the texel snapping bias for the texture.
TextureBase:SetTexture([textureAsset, wrapModeHorizontal, wrapModeVertical, filterMode]) - Sets the texture to an image.
TextureBase:SetTextureSliceMargins(left, top, right, bottom)
TextureBase:SetTextureSliceMode(sliceMode)
TextureBase:SetVertTile([tiling]) - Sets whether the texture should tile vertically.
TextureBase:SetVertexOffset(vertexIndex, offsetX, offsetY) - Sets a vertex offset for the texture.