Class SmartTexture
java.lang.Object
zombie.asset.Asset
zombie.core.textures.Texture
zombie.core.textures.SmartTexture
- All Implemented Interfaces:
Serializable,IDestroyable,IMaskerable,ITexture
- Direct Known Subclasses:
CharacterSmartTexture,ItemSmartTexture
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.core.textures.Texture
Texture.TextureAssetParamsNested classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State -
Field Summary
FieldsFields inherited from class zombie.core.textures.Texture
ASSET_TYPE, assetParams, bDoingQuad, bindAlways, BindCount, flip, la, lastlastTextureID, lastTextureID, lb, lg, lr, nullTextures, offsetX, offsetY, totalTextureID, WarnFailFindTexture, xEnd, xStart, yEnd, yStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadd(String string, SmartShader smartShader, int int0, int int1) voidadd(String string1, SmartShader smartShader, String string0, int int0, int int1) voidadd(String string1, SmartShader smartShader, String string0, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1) voidadd(String string, SmartShader smartShader, ArrayList<TextureCombinerShaderParam> arrayList) voidvoidadd(Texture texture, SmartShader smartShader, int int0, int int1) voidadd(Texture texture, SmartShader smartShader, ArrayList<TextureCombinerShaderParam> arrayList) voidadd(Texture texture0, SmartShader smartShader, Texture texture1, int int0, int int1) voidadd(Texture texture0, SmartShader smartShader, Texture texture1, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1) voidaddDirtOverlay(String string0, String string1, float float0, int int0) addHole(BloodBodyPartType bloodBodyPartType) voidvoidvoidaddMaskedTexture(CharacterMask characterMask, String string0, String string1, int int0, ImmutableColor immutableColor, float float0) voidaddMaskedTexture(CharacterMask characterMask, String string, Texture texture, int int0, ImmutableColor immutableColor, float float0) voidaddOverlay(String string0, String string1, float float0, int int0) voidaddOverlay(String string, SmartShader smartShader) voidaddOverlayPatches(String string0, String string1, int int0) voidvoidaddSeparate(String string, SmartShader smartShader, int int0, int int1, int int2, int int3) voidaddSeparate(String string1, SmartShader smartShader, String string0, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1, int int2, int int3) voidaddSeparate(Texture texture, SmartShader smartShader, int int0, int int1, int int2, int int3) voidaddSeparate(Texture texture0, SmartShader smartShader, Texture texture1, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1, int int2, int int3) voidaddTexture(String string, int int0, ImmutableColor immutableColor, float float0) voidvoidvoidaddTintedOverlay(String string0, String string1, float float0, int int0, float float1, float float2, float float3) voidbind()Blinds the imagevoidvoidclear()voiddestroy()destroys the image and release all resourcesgetData()returns the texture's pixel in a ByteBuffergetFirstFromCategory(int int0) intgetID()Description copied from interface: ITexturebooleanisEmpty()booleanbooleanisReady()voidvoidvoidvoidvoidvoidvoidremoveHole(String string1, BloodBodyPartType bloodBodyPartType) voidremoveHole(Texture texture, BloodBodyPartType bloodBodyPartType) voidremoveHole(Texture texture0, Texture texture1, BloodBodyPartType var3) voidsaveOnRenderThread(String string) Methods inherited from class zombie.core.textures.Texture
bind, bindNone, clearTextures, collectAllIcons, copyMaskRegion, createMask, createMask, createMask, createMask, equals, flipPixels, forgetTexture, getEngineMipmapTexture, getErrorTexture, getHeight, getHeightHW, getHeightOrig, getMask, getName, getOffsetX, getOffsetY, getRealHeight, getRealWidth, getSharedTexture, getSharedTexture, getSteamAvatar, getTexture, getTextureId, getType, getUseAlphaChannel, getUVScale, getWhite, getWidth, getWidthHW, getWidthOrig, getX, getXEnd, getXStart, getY, getYEnd, getYStart, isCollisionable, isDestroyed, isMaskSet, isSolid, isValid, loadMaskRegion, makeTransp, onBeforeReady, onTexturePacksChanged, processFilePath, reload, reloadFromFile, render, render, render, render, renderdiamond, rendershader2, renderstrip, renderwalln, renderwallnw, renderwallw, saveMask, saveMaskRegion, saveToCurrentSavefileDirectory, saveToZomboidDirectory, setAlphaForeach, setCustomizedTexture, setData, setHeight, setMask, setName, setNameOnly, setOffsetX, setOffsetY, setRealHeight, setRealWidth, setRegion, setUseAlphaChannel, setWidth, split, split, split, split2D, splitIcon, steamAvatarChanged, TexDeferedCreation, TexDeferedCreation, toString, trygetTextureMethods inherited from class zombie.asset.Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, onCreated, removeDependency, setAssetParams
-
Field Details
-
commands
-
result
-
-
Constructor Details
-
SmartTexture
public SmartTexture()
-
-
Method Details
-
getFirstFromCategory
-
addOverlayPatches
-
addOverlay
-
addDirtOverlay
-
addOverlay
-
addTintedOverlay
-
addRect
-
destroy
public void destroy()Description copied from class:Texturedestroys the image and release all resources- Specified by:
destroyin interfaceIDestroyable- Overrides:
destroyin classTexture
-
addTint
-
addTint
-
addHue
-
addHue
-
addHole
-
removeHole
-
removeHole
-
removeHole
-
mask
-
mask
-
maskHue
-
maskHue
-
maskTint
-
maskTint
-
addMaskedTexture
public void addMaskedTexture(CharacterMask characterMask, String string0, String string1, int int0, ImmutableColor immutableColor, float float0) -
addMaskedTexture
public void addMaskedTexture(CharacterMask characterMask, String string, Texture texture, int int0, ImmutableColor immutableColor, float float0) -
addTexture
-
getData
-
bind
-
getID
-
calculate
public void calculate() -
clear
public void clear() -
add
-
add
-
add
public void add(String string, SmartShader smartShader, ArrayList<TextureCombinerShaderParam> arrayList) -
add
public void add(Texture texture, SmartShader smartShader, ArrayList<TextureCombinerShaderParam> arrayList) -
add
-
add
-
add
-
add
-
addSeparate
public void addSeparate(String string, SmartShader smartShader, int int0, int int1, int int2, int int3) -
addSeparate
public void addSeparate(Texture texture, SmartShader smartShader, int int0, int int1, int int2, int int3) -
add
public void add(String string1, SmartShader smartShader, String string0, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1) -
add
public void add(Texture texture0, SmartShader smartShader, Texture texture1, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1) -
addSeparate
public void addSeparate(String string1, SmartShader smartShader, String string0, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1, int int2, int int3) -
addSeparate
public void addSeparate(Texture texture0, SmartShader smartShader, Texture texture1, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1, int int2, int int3) -
saveOnRenderThread
- Overrides:
saveOnRenderThreadin classTexture
-
isEmpty
-
isFailure
-
isReady
-