459 lines
10 KiB
Smali
459 lines
10 KiB
Smali
.class public Lcom/esotericsoftware/spine/attachments/MeshAttachment;
|
|
.super Lcom/esotericsoftware/spine/attachments/VertexAttachment;
|
|
.source "MeshAttachment.java"
|
|
|
|
|
|
# instance fields
|
|
.field private b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
.field private c:Ljava/lang/String;
|
|
|
|
.field private d:[F
|
|
|
|
.field private e:[F
|
|
|
|
.field private i:[S
|
|
|
|
.field private final j:Lcom/badlogic/gdx/graphics/Color;
|
|
|
|
.field private k:I
|
|
|
|
.field private l:Lcom/esotericsoftware/spine/attachments/MeshAttachment;
|
|
|
|
.field private m:Z
|
|
|
|
.field private n:[S
|
|
|
|
.field private o:F
|
|
|
|
.field private p:F
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 57
|
|
invoke-direct {p0, p1}, Lcom/esotericsoftware/spine/attachments/VertexAttachment;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 47
|
|
new-instance p1, Lcom/badlogic/gdx/graphics/Color;
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
invoke-direct {p1, v0, v0, v0, v0}, Lcom/badlogic/gdx/graphics/Color;-><init>(FFFF)V
|
|
|
|
iput-object p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->j:Lcom/badlogic/gdx/graphics/Color;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(F)V
|
|
.locals 0
|
|
|
|
.line 174
|
|
iput p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->o:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(I)V
|
|
.locals 0
|
|
|
|
.line 155
|
|
iput p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->k:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/badlogic/gdx/graphics/g2d/TextureRegion;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 62
|
|
iput-object p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
return-void
|
|
|
|
.line 61
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "region cannot be null."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a(Lcom/esotericsoftware/spine/attachments/MeshAttachment;)V
|
|
.locals 1
|
|
|
|
.line 195
|
|
iput-object p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->l:Lcom/esotericsoftware/spine/attachments/MeshAttachment;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 197
|
|
iget-object v0, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->f:[I
|
|
|
|
iput-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->f:[I
|
|
|
|
.line 198
|
|
iget-object v0, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->g:[F
|
|
|
|
iput-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->g:[F
|
|
|
|
.line 199
|
|
iget-object v0, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->d:[F
|
|
|
|
iput-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->d:[F
|
|
|
|
.line 200
|
|
iget-object v0, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->i:[S
|
|
|
|
iput-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->i:[S
|
|
|
|
.line 201
|
|
iget v0, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->k:I
|
|
|
|
iput v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->k:I
|
|
|
|
.line 202
|
|
iget v0, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->h:I
|
|
|
|
iput v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->h:I
|
|
|
|
.line 203
|
|
iget-object v0, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->n:[S
|
|
|
|
iput-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->n:[S
|
|
|
|
.line 204
|
|
iget v0, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->o:F
|
|
|
|
iput v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->o:F
|
|
|
|
.line 205
|
|
iget p1, p1, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->p:F
|
|
|
|
iput p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->p:F
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 146
|
|
iput-object p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->c:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 0
|
|
|
|
.line 218
|
|
iput-boolean p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->m:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a([F)V
|
|
.locals 0
|
|
|
|
.line 121
|
|
iput-object p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->d:[F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a([S)V
|
|
.locals 0
|
|
|
|
.line 111
|
|
iput-object p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->i:[S
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/esotericsoftware/spine/attachments/VertexAttachment;)Z
|
|
.locals 1
|
|
|
|
if-eq p0, p1, :cond_1
|
|
|
|
.line 102
|
|
iget-boolean v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->m:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->l:Lcom/esotericsoftware/spine/attachments/MeshAttachment;
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public b()Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
.locals 3
|
|
|
|
.line 66
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 67
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
return-object v0
|
|
|
|
.line 66
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Region has not been set: "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public b(F)V
|
|
.locals 0
|
|
|
|
.line 183
|
|
iput p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->p:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b([S)V
|
|
.locals 0
|
|
|
|
.line 159
|
|
iput-object p1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->n:[S
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 11
|
|
|
|
.line 74
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
const/high16 v3, 0x3f800000 # 1.0f
|
|
|
|
goto :goto_0
|
|
|
|
.line 78
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->l()F
|
|
|
|
move-result v0
|
|
|
|
.line 79
|
|
iget-object v1, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
invoke-virtual {v1}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->m()F
|
|
|
|
move-result v1
|
|
|
|
.line 80
|
|
iget-object v2, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
invoke-virtual {v2}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->n()F
|
|
|
|
move-result v2
|
|
|
|
sub-float/2addr v2, v0
|
|
|
|
.line 81
|
|
iget-object v3, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
invoke-virtual {v3}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->o()F
|
|
|
|
move-result v3
|
|
|
|
sub-float/2addr v3, v1
|
|
|
|
.line 83
|
|
:goto_0
|
|
iget-object v4, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->d:[F
|
|
|
|
.line 84
|
|
iget-object v5, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->e:[F
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
iget-object v5, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->e:[F
|
|
|
|
array-length v5, v5
|
|
|
|
array-length v6, v4
|
|
|
|
if-eq v5, v6, :cond_2
|
|
|
|
:cond_1
|
|
array-length v5, v4
|
|
|
|
new-array v5, v5, [F
|
|
|
|
iput-object v5, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->e:[F
|
|
|
|
.line 85
|
|
:cond_2
|
|
iget-object v5, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->e:[F
|
|
|
|
.line 86
|
|
iget-object v6, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
instance-of v6, v6, Lcom/badlogic/gdx/graphics/g2d/TextureAtlas$AtlasRegion;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
iget-object v6, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->b:Lcom/badlogic/gdx/graphics/g2d/TextureRegion;
|
|
|
|
check-cast v6, Lcom/badlogic/gdx/graphics/g2d/TextureAtlas$AtlasRegion;
|
|
|
|
iget-boolean v6, v6, Lcom/badlogic/gdx/graphics/g2d/TextureAtlas$AtlasRegion;->i:Z
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
.line 87
|
|
array-length v6, v5
|
|
|
|
:goto_1
|
|
if-ge v7, v6, :cond_4
|
|
|
|
add-int/lit8 v8, v7, 0x1
|
|
|
|
.line 88
|
|
aget v9, v4, v8
|
|
|
|
mul-float v9, v9, v2
|
|
|
|
add-float/2addr v9, v0
|
|
|
|
aput v9, v5, v7
|
|
|
|
add-float v9, v1, v3
|
|
|
|
.line 89
|
|
aget v10, v4, v7
|
|
|
|
mul-float v10, v10, v3
|
|
|
|
sub-float/2addr v9, v10
|
|
|
|
aput v9, v5, v8
|
|
|
|
add-int/lit8 v7, v7, 0x2
|
|
|
|
goto :goto_1
|
|
|
|
.line 92
|
|
:cond_3
|
|
array-length v6, v5
|
|
|
|
:goto_2
|
|
if-ge v7, v6, :cond_4
|
|
|
|
.line 93
|
|
aget v8, v4, v7
|
|
|
|
mul-float v8, v8, v2
|
|
|
|
add-float/2addr v8, v0
|
|
|
|
aput v8, v5, v7
|
|
|
|
add-int/lit8 v8, v7, 0x1
|
|
|
|
.line 94
|
|
aget v9, v4, v8
|
|
|
|
mul-float v9, v9, v3
|
|
|
|
add-float/2addr v9, v1
|
|
|
|
aput v9, v5, v8
|
|
|
|
add-int/lit8 v7, v7, 0x2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()[S
|
|
.locals 1
|
|
|
|
.line 107
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->i:[S
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public e()[F
|
|
.locals 1
|
|
|
|
.line 128
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->e:[F
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public f()Lcom/badlogic/gdx/graphics/Color;
|
|
.locals 1
|
|
|
|
.line 137
|
|
iget-object v0, p0, Lcom/esotericsoftware/spine/attachments/MeshAttachment;->j:Lcom/badlogic/gdx/graphics/Color;
|
|
|
|
return-object v0
|
|
.end method
|