API TextureBase SetAtlas

Sets the texture to an atlas.
 TextureBase:SetAtlas(atlas [, useAtlasSize, filterMode, resetTexCoords])
==Arguments==
:;atlas:
:;useAtlasSize: - True if the size of the texture should be changed to match the dimensions of the atlas.
:;filterMode: - Texture filtering mode to use, one of: LINEAR (default; bilinear filtering), TRILINEAR (also sampling mipmaps), or NEAREST (nearest-neighbor filtering).
:;resetTexCoords:
==Details==
* A texture atlas is technically an image containing multiple smaller images, but the wiki simply refers to those smaller images as atlases.
* The behavior of this function may be replicated by calling and .
==Example==
Shows the Paladin class trial icon on the screen
-- create texture
local f = CreateFrame("Frame")
f:SetSize(1, 1)
f:SetPoint("CENTER")
f.tex = f:CreateTexture()
f.tex:SetPoint("CENTER")
-- set the atlas and use atlas size
f.tex:SetAtlas("ClassTrial-Paladin-Ring", true)
-- which is equivalent to setting a texture, size and tex coords
f.tex:SetTexture("Interface/Glues/AccountUpgrade/ClassTrialThanksFrame")
f.tex:SetSize(188, 188)
f.tex:SetTexCoord(0.186523, 0.370117, 0.339844, 0.523438)
This can be referenced in Helix/AtlasInfo.lua
 ["Interface/Glues/AccountUpgrade/ClassTrialThanksFrame"]={
 	["ClassTrial-Paladin-Ring"]={188, 188, 0.186523, 0.370117, 0.339844, 0.523438, false, false},
AtlasID_Paladin_Ring.png|ClassTrial-Paladin-Ring
AtlasID_ClassTrialThanksFrame.png|ClassTrialThanksFrame
Texture_Atlas_Viewer.png|Texture Atlas Viewer
==Patch changes==