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.TextureAssetParams
Nested 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 TypeMethodDescriptionvoid
void
add
(String string, SmartShader smartShader, int int0, int int1) void
add
(String string1, SmartShader smartShader, String string0, int int0, int int1) void
add
(String string1, SmartShader smartShader, String string0, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1) void
add
(String string, SmartShader smartShader, ArrayList<TextureCombinerShaderParam> arrayList) void
void
add
(Texture texture, SmartShader smartShader, int int0, int int1) void
add
(Texture texture, SmartShader smartShader, ArrayList<TextureCombinerShaderParam> arrayList) void
add
(Texture texture0, SmartShader smartShader, Texture texture1, int int0, int int1) void
add
(Texture texture0, SmartShader smartShader, Texture texture1, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1) void
addDirtOverlay
(String string0, String string1, float float0, int int0) addHole
(BloodBodyPartType bloodBodyPartType) void
void
void
addMaskedTexture
(CharacterMask characterMask, String string0, String string1, int int0, ImmutableColor immutableColor, float float0) void
addMaskedTexture
(CharacterMask characterMask, String string, Texture texture, int int0, ImmutableColor immutableColor, float float0) void
addOverlay
(String string0, String string1, float float0, int int0) void
addOverlay
(String string, SmartShader smartShader) void
addOverlayPatches
(String string0, String string1, int int0) void
void
addSeparate
(String string, SmartShader smartShader, int int0, int int1, int int2, int int3) void
addSeparate
(String string1, SmartShader smartShader, String string0, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1, int int2, int int3) void
addSeparate
(Texture texture, SmartShader smartShader, int int0, int int1, int int2, int int3) void
addSeparate
(Texture texture0, SmartShader smartShader, Texture texture1, ArrayList<TextureCombinerShaderParam> arrayList, int int0, int int1, int int2, int int3) void
addTexture
(String string, int int0, ImmutableColor immutableColor, float float0) void
void
void
addTintedOverlay
(String string0, String string1, float float0, int int0, float float1, float float2, float float3) void
bind()
Blinds the imagevoid
void
clear()
void
destroy()
destroys the image and release all resourcesgetData()
returns the texture's pixel in a ByteBuffergetFirstFromCategory
(int int0) int
getID()
Description copied from interface: ITextureboolean
isEmpty()
boolean
boolean
isReady()
void
void
void
void
void
void
void
removeHole
(String string1, BloodBodyPartType bloodBodyPartType) void
removeHole
(Texture texture, BloodBodyPartType bloodBodyPartType) void
removeHole
(Texture texture0, Texture texture1, BloodBodyPartType var3) void
saveOnRenderThread
(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, trygetTexture
Methods 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:Texture
destroys the image and release all resources- Specified by:
destroy
in interfaceIDestroyable
- Overrides:
destroy
in 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:
saveOnRenderThread
in classTexture
-
isEmpty
-
isFailure
-
isReady
-