210 lines
4.5 KiB
Smali
210 lines
4.5 KiB
Smali
.class public Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;
|
|
.super Ljava/lang/Object;
|
|
.source "GLOnlyTextureData.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/badlogic/gdx/graphics/TextureData;
|
|
|
|
|
|
# instance fields
|
|
.field a:I
|
|
|
|
.field b:I
|
|
|
|
.field c:Z
|
|
|
|
.field d:I
|
|
|
|
.field e:I
|
|
|
|
.field f:I
|
|
|
|
.field g:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(IIIIII)V
|
|
.locals 1
|
|
|
|
.line 51
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 31
|
|
iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->a:I
|
|
|
|
.line 32
|
|
iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->b:I
|
|
|
|
.line 33
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->c:Z
|
|
|
|
.line 36
|
|
iput v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->d:I
|
|
|
|
.line 52
|
|
iput p1, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->a:I
|
|
|
|
.line 53
|
|
iput p2, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->b:I
|
|
|
|
.line 54
|
|
iput p3, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->d:I
|
|
|
|
.line 55
|
|
iput p4, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->e:I
|
|
|
|
.line 56
|
|
iput p5, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->f:I
|
|
|
|
.line 57
|
|
iput p6, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->g:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(I)V
|
|
.locals 10
|
|
|
|
.line 78
|
|
sget-object v0, Lcom/badlogic/gdx/Gdx;->e:Lcom/badlogic/gdx/graphics/GL20;
|
|
|
|
iget v2, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->d:I
|
|
|
|
iget v3, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->e:I
|
|
|
|
iget v4, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->a:I
|
|
|
|
iget v5, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->b:I
|
|
|
|
iget v7, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->f:I
|
|
|
|
iget v8, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->g:I
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move v1, p1
|
|
|
|
invoke-interface/range {v0 .. v9}, Lcom/badlogic/gdx/graphics/GL20;->glTexImage2D(IIIIIIIILjava/nio/Buffer;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a()Z
|
|
.locals 1
|
|
|
|
.line 67
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->c:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 2
|
|
|
|
.line 72
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->c:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 73
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->c:Z
|
|
|
|
return-void
|
|
|
|
.line 72
|
|
:cond_0
|
|
new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;
|
|
|
|
const-string v1, "Already prepared"
|
|
|
|
invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public d()I
|
|
.locals 1
|
|
|
|
.line 93
|
|
iget v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->a:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 1
|
|
|
|
.line 98
|
|
iget v0, p0, Lcom/badlogic/gdx/graphics/glutils/GLOnlyTextureData;->b:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public f()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public g()Lcom/badlogic/gdx/graphics/TextureData$TextureDataType;
|
|
.locals 1
|
|
|
|
.line 62
|
|
sget-object v0, Lcom/badlogic/gdx/graphics/TextureData$TextureDataType;->Custom:Lcom/badlogic/gdx/graphics/TextureData$TextureDataType;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public h()Lcom/badlogic/gdx/graphics/Pixmap;
|
|
.locals 2
|
|
|
|
.line 83
|
|
new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;
|
|
|
|
const-string v1, "This TextureData implementation does not return a Pixmap"
|
|
|
|
invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public i()Z
|
|
.locals 2
|
|
|
|
.line 88
|
|
new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;
|
|
|
|
const-string v1, "This TextureData implementation does not return a Pixmap"
|
|
|
|
invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public j()Lcom/badlogic/gdx/graphics/Pixmap$Format;
|
|
.locals 1
|
|
|
|
.line 103
|
|
sget-object v0, Lcom/badlogic/gdx/graphics/Pixmap$Format;->RGBA8888:Lcom/badlogic/gdx/graphics/Pixmap$Format;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public k()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|