EchoesRenderer.smali
.class public Lcom/sandboxol/clothes/EchoesRenderer;
.super Ljava/lang/Object;
.source "EchoesRenderer.java"
# interfaces
.implements Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;
# instance fields
.field private gl10:Ljavax/microedition/khronos/opengles/GL10;
.field private mContext:Landroid/content/Context;
.field private mHeight:I
.field private mMainHandler:Lcom/sandboxol/clothes/EchoesHandler;
.field private mScreenHeight:I
.field private mScreenWidth:I
.field private mWidth:I
.field private m_bInitOK:Z
# direct methods
.method static constructor <clinit>()V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "c++_shared"
invoke-static {v0, v1}, Lcom/getkeepsafe/relinker/b;->a(Landroid/content/Context;Ljava/lang/String;)V
.line 2
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "ClothesPreview"
invoke-static {v0, v1}, Lcom/getkeepsafe/relinker/b;->a(Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnsafeDynamicallyLoadedCode"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mWidth:I
iput v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mHeight:I
.line 3
iput-object p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mContext:Landroid/content/Context;
.line 4
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesHelper;->init(Landroid/content/Context;)V
return-void
.end method
.method private static native nativeAddActorDisplay(Ljava/lang/String;)V
.end method
.method private static native nativeChangeAction(I)V
.end method
.method private static native nativeChangeActorSize(FF)V
.end method
.method private static native nativeChangeBackgroundImage(Ljava/lang/String;)I
.end method
.method private static native nativeChangeDefaultIdle(I)I
.end method
.method private static native nativeChangeDefaultIdleOtherPlayer(ILjava/lang/String;)I
.end method
.method private static native nativeChangeMode(II)V
.end method
.method private static native nativeChangeName(Ljava/lang/String;)V
.end method
.method private static native nativeChangeOnGameState(Ljava/lang/String;Z)V
.end method
.method private static native nativeChangeParts(Ljava/lang/String;Ljava/lang/String;)V
.end method
.method private static native nativeChangePartsOtherPlayer(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.end method
.method private static native nativeChangePartyOwner(Ljava/lang/String;)V
.end method
.method private static native nativeChangePosition(FFF)I
.end method
.method private static native nativeChangeSex(I)V
.end method
.method private static native nativeChangeSexOtherPlayer(ILjava/lang/String;)V
.end method
.method private static native nativeChangeSkinColor(FFFF)V
.end method
.method private static native nativeChangeSkinColorOtherPlayer(FFFFLjava/lang/String;)V
.end method
.method private static native nativeChangeVipLevel(I)V
.end method
.method private static native nativeChangeVipLevelOtherPlayer(ILjava/lang/String;)V
.end method
.method private static native nativeChat(Ljava/lang/String;Ljava/lang/String;)V
.end method
.method private static native nativeCheckResource(ILjava/lang/String;Ljava/lang/String;)V
.end method
.method public static native nativeCheckVersion(Ljava/lang/String;)I
.end method
.method private static native nativeDeleteActorDisplay(Ljava/lang/String;)V
.end method
.method public static native nativeGetCurrentDownloadSize()I
.end method
.method public static native nativeGetDownloadPercent()F
.end method
.method public static native nativeGetDownloadState()I
.end method
.method public static native nativeGetLocalVersion()Ljava/lang/String;
.end method
.method public static native nativeGetServerVersion()Ljava/lang/String;
.end method
.method public static native nativeGetTotalDownloadSize()I
.end method
.method public static native nativeInit(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
.end method
.method private static native nativeKeyDown(I)Z
.end method
.method private static native nativeOnDestroy()V
.end method
.method private static native nativeOnGetPhoneType(Ljava/lang/String;)V
.end method
.method private static native nativeOnPause()V
.end method
.method private static native nativeOnResume()V
.end method
.method private static native nativeOnSurfaceChanged(II)V
.end method
.method private static native nativeReloadActor()V
.end method
.method private static native nativeRender()V
.end method
.method private static native nativeTouchesBegin(IFF)V
.end method
.method private static native nativeTouchesCancel([I[F[F)V
.end method
.method private static native nativeTouchesEnd(IFF)V
.end method
.method private static native nativeTouchesMove([I[F[F)V
.end method
.method public static native nativeUpdateFiles()I
.end method
# virtual methods
.method public SetMainHandler(Lcom/sandboxol/clothes/EchoesHandler;)V
.registers 2
.line 1
iput-object p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mMainHandler:Lcom/sandboxol/clothes/EchoesHandler;
return-void
.end method
.method public synthetic a()V
.registers 4
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "opengl invalid. "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mContext:Landroid/content/Context;
check-cast v1, Landroid/app/Activity;
invoke-virtual {v1}, Landroid/app/Activity;->getLocalClassName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " finish."
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "InitClothes"
invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 2
iget-object v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mContext:Landroid/content/Context;
const-string v1, "opengl_context_not_valid"
const-string v2, "initClothes"
invoke-static {v0, v1, v2}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
.line 3
iget-object v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mContext:Landroid/content/Context;
check-cast v0, Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->finish()V
return-void
.end method
.method public getScreenHeight()I
.registers 2
.line 1
iget v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mScreenHeight:I
return v0
.end method
.method public getScreenWidth()I
.registers 2
.line 1
iget v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mScreenWidth:I
return v0
.end method
.method public handleActionCancel([I[F[F)V
.registers 4
.line 1
invoke-static {p1, p2, p3}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeTouchesCancel([I[F[F)V
return-void
.end method
.method public handleActionDown(IFF)V
.registers 4
.line 1
invoke-static {p1, p2, p3}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeTouchesBegin(IFF)V
return-void
.end method
.method public handleActionMove([I[F[F)V
.registers 4
.line 1
invoke-static {p1, p2, p3}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeTouchesMove([I[F[F)V
return-void
.end method
.method public handleActionUp(IFF)V
.registers 4
.line 1
invoke-static {p1, p2, p3}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeTouchesEnd(IFF)V
return-void
.end method
.method public handleAddActorDisplay(Ljava/lang/String;)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeAddActorDisplay(Ljava/lang/String;)V
return-void
.end method
.method public handleChangeAction(I)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeAction(I)V
return-void
.end method
.method public handleChangeActorSize(FF)V
.registers 3
.line 1
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeActorSize(FF)V
return-void
.end method
.method public handleChangeBackgroundImage(Ljava/lang/String;)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeBackgroundImage(Ljava/lang/String;)I
return-void
.end method
.method public handleChangeDefaultIdle(I)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeDefaultIdle(I)I
return-void
.end method
.method public handleChangeMode(II)V
.registers 3
.line 1
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeMode(II)V
return-void
.end method
.method public handleChangeName(Ljava/lang/String;)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeName(Ljava/lang/String;)V
return-void
.end method
.method public handleChangeOnGameState(Ljava/lang/String;Z)V
.registers 3
.line 1
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeOnGameState(Ljava/lang/String;Z)V
return-void
.end method
.method public handleChangeParts(Ljava/lang/String;Ljava/lang/String;)V
.registers 3
.line 1
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeParts(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public handleChangePartsOtherPlayer(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.registers 4
.line 1
invoke-static {p1, p2, p3}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangePartsOtherPlayer(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public handleChangePartyOwner(Ljava/lang/String;)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangePartyOwner(Ljava/lang/String;)V
return-void
.end method
.method public handleChangePosition(FFF)V
.registers 4
.line 1
invoke-static {p1, p2, p3}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangePosition(FFF)I
return-void
.end method
.method public handleChangeSex(I)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeSex(I)V
return-void
.end method
.method public handleChangeSexOtherPlayer(ILjava/lang/String;)V
.registers 3
.line 1
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeSexOtherPlayer(ILjava/lang/String;)V
return-void
.end method
.method public handleChangeSkinColor(FFFF)V
.registers 5
.line 1
invoke-static {p1, p2, p3, p4}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeSkinColor(FFFF)V
return-void
.end method
.method public handleChangeSkinColorOtherPlayer(FFFFLjava/lang/String;)V
.registers 6
.line 1
invoke-static {p1, p2, p3, p4, p5}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeSkinColorOtherPlayer(FFFFLjava/lang/String;)V
return-void
.end method
.method public handleChangeVipLevel(I)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeVipLevel(I)V
return-void
.end method
.method public handleChangeVipLevelOtherPlayer(ILjava/lang/String;)V
.registers 3
.line 1
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeVipLevelOtherPlayer(ILjava/lang/String;)V
return-void
.end method
.method public handleChat(Ljava/lang/String;Ljava/lang/String;)V
.registers 3
.line 1
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChat(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public handleCheckResource(ILjava/lang/String;Ljava/lang/String;)V
.registers 4
if-nez p2, :cond_3
return-void
:cond_3
if-nez p3, :cond_7
const-string p3, ""
.line 1
:cond_7
invoke-static {p1, p2, p3}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeCheckResource(ILjava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public handleDefaultIdleOtherPlayer(ILjava/lang/String;)V
.registers 3
.line 1
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeChangeDefaultIdleOtherPlayer(ILjava/lang/String;)I
return-void
.end method
.method public handleDeleteActorDisplay(Ljava/lang/String;)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeDeleteActorDisplay(Ljava/lang/String;)V
return-void
.end method
.method public handleInitGame(Ljava/lang/String;Ljava/lang/String;III)Z
.registers 14
const/4 v0, 0x0
.line 1
:try_start_1
invoke-virtual {p0}, Lcom/sandboxol/clothes/EchoesRenderer;->isGLValid()Z
move-result v1
if-nez v1, :cond_1e
iget-object v1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mContext:Landroid/content/Context;
check-cast v1, Landroid/app/Activity;
invoke-virtual {v1}, Landroid/app/Activity;->isFinishing()Z
move-result v1
if-nez v1, :cond_1e
.line 2
iget-object p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mContext:Landroid/content/Context;
check-cast p1, Landroid/app/Activity;
new-instance p2, Lcom/sandboxol/clothes/V;
invoke-direct {p2, p0}, Lcom/sandboxol/clothes/V;-><init>(Lcom/sandboxol/clothes/EchoesRenderer;)V
invoke-virtual {p1, p2}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V
:try_end_1d
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1d} :catch_3c
return v0
.line 3
:cond_1e
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->v1()Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;->getResCachePath()Ljava/lang/String;
move-result-object v3
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->v1()Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;->getEngineResBaseUrl()Ljava/lang/String;
move-result-object v4
move-object v1, p1
move-object v2, p2
move v5, p3
move v6, p4
move v7, p5
invoke-static/range {v1 .. v7}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeInit(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
.line 4
iput p3, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mWidth:I
.line 5
iput p4, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mHeight:I
const/4 p1, 0x1
return p1
:catch_3c
move-exception p1
.line 6
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
return v0
.end method
.method public handleKeyDown(I)V
.registers 2
.line 1
invoke-static {p1}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeKeyDown(I)Z
return-void
.end method
.method public handleOnDestroy()V
.registers 1
.line 1
invoke-static {}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeOnDestroy()V
return-void
.end method
.method public handleOnPause()V
.registers 1
.line 1
invoke-static {}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeOnPause()V
return-void
.end method
.method public handleOnResume()V
.registers 1
.line 1
invoke-static {}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeOnResume()V
return-void
.end method
.method public handleReloadActor()V
.registers 1
.line 1
invoke-static {}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeReloadActor()V
return-void
.end method
.method public handleSurfaceChanged(II)V
.registers 4
.line 1
iget v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mWidth:I
if-ne p1, v0, :cond_8
iget v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mHeight:I
if-eq v0, p2, :cond_b
.line 2
:cond_8
invoke-static {p1, p2}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeOnSurfaceChanged(II)V
.line 3
:cond_b
iput p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mWidth:I
.line 4
iput p2, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mHeight:I
return-void
.end method
.method public isGLValid()Z
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->gl10:Ljavax/microedition/khronos/opengles/GL10;
if-eqz v0, :cond_e
const/16 v1, 0x1f02
invoke-interface {v0, v1}, Ljavax/microedition/khronos/opengles/GL10;->glGetString(I)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_e
const/4 v0, 0x1
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
return v0
.end method
.method public isInitOk()Z
.registers 2
.line 1
iget-boolean v0, p0, Lcom/sandboxol/clothes/EchoesRenderer;->m_bInitOK:Z
return v0
.end method
.method public onDrawFrame(Ljavax/microedition/khronos/opengles/GL10;)V
.registers 3
.line 1
:try_start_0
iput-object p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->gl10:Ljavax/microedition/khronos/opengles/GL10;
.line 2
iget-boolean p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->m_bInitOK:Z
if-eqz p1, :cond_11
.line 3
invoke-static {}, Lcom/sandboxol/clothes/EchoesRenderer;->nativeRender()V
:try_end_9
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_9} :catch_a
goto :goto_11
.line 4
:catch_a
sget-object p1, Ljava/lang/System;->out:Ljava/io/PrintStream;
const-string v0, "gl thread exception"
invoke-virtual {p1, v0}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
:cond_11
:goto_11
return-void
.end method
.method public onSurfaceChanged(Ljavax/microedition/khronos/opengles/GL10;II)V
.registers 4
return-void
.end method
.method public onSurfaceCreated(Ljavax/microedition/khronos/opengles/GL10;Ljavax/microedition/khronos/egl/EGLConfig;)V
.registers 3
const/4 p2, 0x0
.line 1
iput-boolean p2, p0, Lcom/sandboxol/clothes/EchoesRenderer;->m_bInitOK:Z
.line 2
iput-object p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->gl10:Ljavax/microedition/khronos/opengles/GL10;
.line 3
iget-object p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mMainHandler:Lcom/sandboxol/clothes/EchoesHandler;
if-eqz p1, :cond_16
.line 4
new-instance p1, Landroid/os/Message;
invoke-direct {p1}, Landroid/os/Message;-><init>()V
const/4 p2, 0x4
.line 5
iput p2, p1, Landroid/os/Message;->what:I
.line 6
iget-object p2, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mMainHandler:Lcom/sandboxol/clothes/EchoesHandler;
invoke-virtual {p2, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
:cond_16
return-void
.end method
.method public setInitOK(Z)V
.registers 2
.line 1
iput-boolean p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->m_bInitOK:Z
return-void
.end method
.method public setScreenWidthAndHeight(II)V
.registers 3
.line 1
iput p1, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mScreenWidth:I
.line 2
iput p2, p0, Lcom/sandboxol/clothes/EchoesRenderer;->mScreenHeight:I
return-void
.end method