Package zombie.core.textures
Class SmartTexture
java.lang.Object
zombie.asset.Asset
zombie.core.textures.Texture
zombie.core.textures.SmartTexture
- All Implemented Interfaces:
java.io.Serializable
,IDestroyable
,IMaskerable
,ITexture
- Direct Known Subclasses:
CharacterSmartTexture
,ItemSmartTexture
public class SmartTexture extends Texture
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.core.textures.Texture
Texture.PZFileformat, Texture.TextureAssetParams
Nested classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State
-
Field Summary
Fields inherited from class zombie.core.textures.Texture
ASSET_TYPE, assetParams, bDoingQuad, bindAlways, BindCount, dataid, flip, height, heightOrig, la, lastlastTextureID, lastTextureID, lb, lg, lr, mask, name, nullTextures, offsetX, offsetY, solid, subTexture, totalTextureID, WarnFailFindTexture, width, widthOrig, xEnd, xStart, yEnd, yStart
Fields inherited from class zombie.asset.Asset
m_asset_manager
-
Constructor Summary
Constructors Constructor Description SmartTexture()
-
Method Summary
Modifier and Type Method Description void
add(java.lang.String string)
void
add(java.lang.String string, int int1, int int2)
void
add(java.lang.String string, SmartShader smartShader, java.lang.String string2, int int1, int int2)
void
add(java.lang.String string, SmartShader smartShader, java.lang.String string2, java.util.ArrayList arrayList, int int1, int int2)
void
add(java.lang.String string, SmartShader smartShader, java.util.ArrayList arrayList)
void
add(Texture texture)
void
add(Texture texture, int int1, int int2)
void
add(Texture texture, SmartShader smartShader, java.util.ArrayList arrayList)
void
add(Texture texture, SmartShader smartShader, Texture texture2, int int1, int int2)
void
add(Texture texture, SmartShader smartShader, Texture texture2, java.util.ArrayList arrayList, int int1, int int2)
void
addDirtOverlay(java.lang.String string, java.lang.String string2, float float1, int int1)
Texture
addHole(BloodBodyPartType bloodBodyPartType)
void
addHue(java.lang.String string, int int1, float float1)
void
addHue(Texture texture, int int1, float float1)
void
addMaskedTexture(CharacterMask characterMask, java.lang.String string, java.lang.String string2, int int1, ImmutableColor immutableColor, float float1)
void
addMaskedTexture(CharacterMask characterMask, java.lang.String string, Texture texture, int int1, ImmutableColor immutableColor, float float1)
void
addOverlay(java.lang.String string)
void
addOverlay(java.lang.String string, java.lang.String string2, float float1, int int1)
void
addOverlayPatches(java.lang.String string, java.lang.String string2, int int1)
void
addRect(java.lang.String string, int int1, int int2, int int3, int int4)
void
addTexture(java.lang.String string, int int1, ImmutableColor immutableColor, float float1)
void
addTint(java.lang.String string, int int1, float float1, float float2, float float3)
void
addTint(Texture texture, int int1, float float1, float float2, float float3)
void
bind()
void
calculate()
void
clear()
void
destroy()
WrappedBuffer
getData()
TextureCombinerCommand
getFirstFromCategory(int int1)
int
getID()
boolean
isEmpty()
boolean
isFailure()
boolean
isReady()
void
mask(java.lang.String string, java.lang.String string2, int int1)
void
mask(Texture texture, Texture texture2, int int1)
void
maskHue(java.lang.String string, java.lang.String string2, int int1, float float1)
void
maskHue(Texture texture, Texture texture2, int int1, float float1)
void
maskTint(java.lang.String string, java.lang.String string2, int int1, float float1, float float2, float float3)
void
maskTint(Texture texture, Texture texture2, int int1, float float1, float float2, float float3)
void
removeHole(java.lang.String string, BloodBodyPartType bloodBodyPartType)
void
removeHole(Texture texture, BloodBodyPartType bloodBodyPartType)
void
removeHole(Texture texture, Texture texture2, BloodBodyPartType bloodBodyPartType)
void
save(java.lang.String string)
protected void
setDirty()
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, getSharedTexture, getSharedTexture, getSteamAvatar, getTexture, getTextureId, getType, getUseAlphaChannel, getUVScale, getWhite, getWidth, getWidthHW, getWidthOrig, getXEnd, getXStart, getYEnd, getYStart, isCollisionable, isDestroyed, isSolid, isValid, loadMaskRegion, makeTransp, onBeforeReady, onTexturePacksChanged, processFilePath, reload, reloadFromFile, render, render, render, render, renderdiamond, rendershader2, renderstrip, renderwalln, renderwallnw, renderwallw, saveMask, saveMaskRegion, setAlphaForeach, setCustomizedTexture, setData, setHeight, setMask, setName, setNameOnly, setOffsetX, setOffsetY, setRealHeight, setRealWidth, setRegion, setUseAlphaChannel, setWidth, split, split, split, split2D, splitIcon, steamAvatarChanged, toString, trygetTexture
Methods inherited from class zombie.asset.Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, onBeforeEmpty, onCreated, removeDependency, setAssetParams
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
commands
public final java.util.ArrayList commands -
result
-
-
Constructor Details
-
SmartTexture
public SmartTexture()
-
-
Method Details
-
getFirstFromCategory
-
addOverlayPatches
public void addOverlayPatches(java.lang.String string, java.lang.String string2, int int1) -
addOverlay
public void addOverlay(java.lang.String string, java.lang.String string2, float float1, int int1) -
addDirtOverlay
public void addDirtOverlay(java.lang.String string, java.lang.String string2, float float1, int int1) -
addOverlay
public void addOverlay(java.lang.String string) -
addRect
public void addRect(java.lang.String string, int int1, int int2, int int3, int int4) -
destroy
public void destroy()- Specified by:
destroy
in interfaceIDestroyable
- Overrides:
destroy
in classTexture
-
addTint
public void addTint(java.lang.String string, int int1, float float1, float float2, float float3) -
addTint
-
addHue
public void addHue(java.lang.String string, int int1, float float1) -
addHue
-
addHole
-
removeHole
-
removeHole
-
removeHole
-
mask
public void mask(java.lang.String string, java.lang.String string2, int int1) -
mask
-
maskHue
public void maskHue(java.lang.String string, java.lang.String string2, int int1, float float1) -
maskHue
-
maskTint
public void maskTint(java.lang.String string, java.lang.String string2, int int1, float float1, float float2, float float3) -
maskTint
-
addMaskedTexture
public void addMaskedTexture(CharacterMask characterMask, java.lang.String string, java.lang.String string2, int int1, ImmutableColor immutableColor, float float1) -
addMaskedTexture
public void addMaskedTexture(CharacterMask characterMask, java.lang.String string, Texture texture, int int1, ImmutableColor immutableColor, float float1) -
addTexture
public void addTexture(java.lang.String string, int int1, ImmutableColor immutableColor, float float1) -
getData
-
bind
public void bind() -
getID
public int getID() -
calculate
public void calculate() -
clear
public void clear() -
add
public void add(java.lang.String string) -
add
-
add
-
add
-
add
public void add(java.lang.String string, SmartShader smartShader, java.lang.String string2, int int1, int int2) -
add
-
add
public void add(java.lang.String string, int int1, int int2) -
add
-
add
public void add(java.lang.String string, SmartShader smartShader, java.lang.String string2, java.util.ArrayList arrayList, int int1, int int2) -
add
public void add(Texture texture, SmartShader smartShader, Texture texture2, java.util.ArrayList arrayList, int int1, int int2) -
save
public void save(java.lang.String string) -
setDirty
protected void setDirty() -
isEmpty
public boolean isEmpty() -
isFailure
public boolean isFailure() -
isReady
public boolean isReady()
-