WowAddons

World of Warcraft Forever API · C_Texture.md, for your AI

C_Texture

11 functions, 1 events, 4 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_Texture.ClearTitleIconTexture

C_Texture.ClearTitleIconTexture(texture)

Arguments

textureSimpleTexture

C_Texture.GetAtlasElementID

elementID = C_Texture.GetAtlasElementID(atlas)

Arguments

atlastextureAtlas

Returns

elementIDnumber

C_Texture.GetAtlasElements

atlases = C_Texture.GetAtlasElements()

Returns

atlasestextureAtlas[]

C_Texture.GetAtlasExists

atlasExists = C_Texture.GetAtlasExists(atlas)

Arguments

atlastextureAtlas

Returns

atlasExistsbool

C_Texture.GetAtlasID

atlasID = C_Texture.GetAtlasID(atlas)

Arguments

atlastextureAtlas

Returns

atlasIDnumber

C_Texture.GetAtlasInfo

info = C_Texture.GetAtlasInfo(atlas)

May return nothing.

Arguments

atlastextureAtlas

Returns

infoAtlasInfo

C_Texture.GetFilenameFromFileDataID

filename = C_Texture.GetFilenameFromFileDataID(fileDataID)

Arguments

fileDataIDnumber

Returns

filenamestring

C_Texture.GetTitleIconTexture

C_Texture.GetTitleIconTexture(titleID, version, callback, [subIcon])

Arguments

titleIDstring
versionTitleIconVersion
callbackGetTitleIconTextureCallback
subIconstring may be nil

C_Texture.IsTitleIconTextureReady

ready = C_Texture.IsTitleIconTextureReady(titleID, version, [subIcon])

Arguments

titleIDstring
versionTitleIconVersion
subIconstring may be nil

Returns

readybool

C_Texture.SetTitleIconTexture

C_Texture.SetTitleIconTexture(texture, titleID, version, [subIcon])

Arguments

textureSimpleTexture
titleIDstring
versionTitleIconVersion
subIconstring may be nil

C_Texture.SetURLTexture

C_Texture.SetURLTexture(texture, url)

Arguments

textureSimpleTexture
urlcstring

Events

URL_TEXTURE_REQUEST_RESULT

textureSimpleTexture
resultUrlTextureResult

Tables

Enum.TitleIconVersion enumeration

Small0
Medium1
Large2

Enum.UrlTextureResult enumeration

Found1
NotFound2
Requested3
NotAllowed4

AtlasInfo structure

elementNamecstring
widthnumber
heightnumber
rawSizevector2
leftTexCoordnumber
rightTexCoordnumber
topTexCoordnumber
bottomTexCoordnumber
tilesHorizontallybool
tilesVerticallybool
filefileID may be nil
filenamestring may be nil
sliceDataUITextureSliceData may be nil

GetTitleIconTextureCallback callbacktype

successbool
texturefileID

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows