Compile
This commit is contained in:
parent
19cb8ba7de
commit
0276f98761
|
@ -14017,6 +14017,28 @@ window.addEventListener("load", function() {
|
|||
nlea_EaglerAdapterImpl2_$callClinit();
|
||||
nlea_EaglerAdapterImpl2_webgl.drawElements(4, $v3, 5123, $p2);
|
||||
}
|
||||
function olo_EaglerAdapterGL30_glTexSubImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9) {
|
||||
var var$10, var$11;
|
||||
olo_EaglerAdapterGL30_$callClinit();
|
||||
switch ($p1) {
|
||||
case 3553:
|
||||
break;
|
||||
default:
|
||||
}
|
||||
olo_EaglerAdapterGL30_bytesUploaded = olo_EaglerAdapterGL30_bytesUploaded + jn_Buffer_remaining($p9) | 0;
|
||||
nlea_EaglerAdapterImpl2_$callClinit();
|
||||
$p1 = jn_Buffer_remaining($p9);
|
||||
$p7 = 0;
|
||||
while ($p7 < $p1) {
|
||||
var$10 = nlea_EaglerAdapterImpl2_uploadBuffer;
|
||||
$p8 = (jn_ByteBufferImpl_get($p9) & 255) << 16 >> 16;
|
||||
$p7;
|
||||
var$10[$p7] = $p8;
|
||||
$p7 = $p7 + 1 | 0;
|
||||
}
|
||||
var$11 = new $rt_globals.Uint8Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer, 0, $p1);
|
||||
nlea_EaglerAdapterImpl2_webgl.texSubImage2D(3553, $p2, $p3, $p4, $p5, $p6, 6408, 5121, var$11);
|
||||
}
|
||||
function olo_EaglerAdapterGL30_glFogi($p1, $p2) {
|
||||
olo_EaglerAdapterGL30_$callClinit();
|
||||
a: {
|
||||
|
@ -53333,66 +53355,215 @@ window.addEventListener("load", function() {
|
|||
olo_EaglerAdapterGL30_glBindTexture(3553, $i);
|
||||
}
|
||||
function nms_RenderEngine_func_1067_a($this) {
|
||||
var $i, $texturefx, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp;
|
||||
var $var1, $tmp_0, $var5, $var2, $var3, $var4, $var5_0, $var6, $var7, $var12, $var11, $var9, $var8, $var10, $var7_0, $var11_0, $var10_0, $var13, $var14, $ptr, $tmp;
|
||||
$ptr = 0;
|
||||
if ($rt_resuming()) {
|
||||
var $thread = $rt_nativeThread();
|
||||
$ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$texturefx = $thread.pop();$i = $thread.pop();$this = $thread.pop();
|
||||
$ptr = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var10_0 = $thread.pop();$var11_0 = $thread.pop();$var7_0 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var9 = $thread.pop();$var11 = $thread.pop();$var12 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5_0 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var5 = $thread.pop();$tmp_0 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop();
|
||||
}
|
||||
main: while (true) { switch ($ptr) {
|
||||
case 0:
|
||||
$i = 0;
|
||||
$texturefx = $this.$textureList;
|
||||
if ($i >= $texturefx.$size)
|
||||
$var1 = 0;
|
||||
$tmp_0 = $this.$textureList;
|
||||
if ($var1 >= $tmp_0.$size) {
|
||||
$var5 = 0;
|
||||
while (true) {
|
||||
$tmp_0 = $this.$textureList;
|
||||
if ($var5 >= $tmp_0.$size)
|
||||
break;
|
||||
a: {
|
||||
$var2 = ju_ArrayList_get($tmp_0, $var5);
|
||||
if ($var2.$field_1130_d > 0) {
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $var2.$field_1127_a);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
jn_Buffer_position0($tmp_0, 0);
|
||||
jn_Buffer_limit($tmp_0, $var2.$field_1127_a.data.length);
|
||||
jn_Buffer_clear($this.$imageDataB2);
|
||||
olo_EaglerAdapterGL30_glBindTexture(3553, $var2.$field_1130_d);
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, 0, 0, 0, 16, 16, 6408, 5121, $this.$imageDataB1);
|
||||
if (nms_RenderEngine_useMipmaps) {
|
||||
$var3 = 1;
|
||||
while (true) {
|
||||
if ($var3 > 4)
|
||||
break a;
|
||||
$var4 = 16 >> ($var3 - 1 | 0);
|
||||
$var5_0 = 16 >> $var3;
|
||||
$var6 = 0;
|
||||
while ($var6 < $var5_0) {
|
||||
$var7 = 0;
|
||||
while ($var7 < $var5_0) {
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var1 = $var6 * 2 | 0;
|
||||
$var12 = $var1 + 0 | 0;
|
||||
$var11 = $var7 * 2 | 0;
|
||||
$var9 = $rt_imul($var11 + 0 | 0, $var4);
|
||||
$var8 = jn_ByteBufferImpl_getInt($tmp_0, ($var12 + $var9 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var10 = $var1 + 1 | 0;
|
||||
$var9 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var9 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var1 = $rt_imul($var11 + 1 | 0, $var4);
|
||||
$var10 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var1 | 0) * 4 | 0);
|
||||
$var11 = jn_ByteBufferImpl_getInt($this.$imageDataB1, ($var12 + $var1 | 0) * 4 | 0);
|
||||
$var12 = nms_RenderEngine_averageColor($this, nms_RenderEngine_averageColor($this, $var8, $var9), nms_RenderEngine_averageColor($this, $var10, $var11));
|
||||
jn_ByteBufferImpl_putInt($this.$imageDataB2, ($var6 + $rt_imul($var7, $var5_0) | 0) * 4 | 0, $var12);
|
||||
$var7 = $var7 + 1 | 0;
|
||||
}
|
||||
$var6 = $var6 + 1 | 0;
|
||||
}
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, $var3, 0, 0, $var5_0, $var5_0, 6408, 5121, $this.$imageDataB2);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$this.$imageDataB1 = $this.$imageDataB2;
|
||||
$this.$imageDataB2 = $tmp_0;
|
||||
$var3 = $var3 + 1 | 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$var5 = $var5 + 1 | 0;
|
||||
}
|
||||
return;
|
||||
$texturefx = ju_ArrayList_get($texturefx, $i);
|
||||
$texturefx.$field_1131_c = $this.$options.$anaglyph;
|
||||
$texturefx.$func_783_a();
|
||||
}
|
||||
$var2 = ju_ArrayList_get($tmp_0, $var1);
|
||||
$var2.$field_1131_c = $this.$options.$anaglyph;
|
||||
$var2.$func_783_a();
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $var2.$field_1127_a);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
jn_Buffer_position0($tmp_0, 0);
|
||||
jn_Buffer_limit($tmp_0, $var2.$field_1127_a.data.length);
|
||||
$ptr = 1;
|
||||
case 1:
|
||||
nms_TextureFX_func_782_a($texturefx, $this);
|
||||
nms_TextureFX_func_782_a($var2, $this);
|
||||
if ($rt_suspending()) {
|
||||
break main;
|
||||
}
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $texturefx.$field_1127_a);
|
||||
var$3 = $this.$imageDataB1;
|
||||
jn_Buffer_position0(var$3, 0);
|
||||
jn_Buffer_limit(var$3, 1024);
|
||||
var$4 = $texturefx.$field_1126_b;
|
||||
var$5 = (var$4 % 16 | 0) * 16 | 0;
|
||||
var$4 = (var$4 / 16 | 0) * 16 | 0;
|
||||
var$3 = $this.$imageDataB1;
|
||||
olo_EaglerAdapterGL30_$callClinit();
|
||||
switch (3553) {
|
||||
case 3553:
|
||||
break;
|
||||
default:
|
||||
jn_Buffer_clear($this.$imageDataB2);
|
||||
$var3 = 0;
|
||||
while ($var3 < $var2.$field_1129_e) {
|
||||
$var4 = 0;
|
||||
while ($var4 < $var2.$field_1129_e) {
|
||||
a: {
|
||||
$var12 = $var2.$field_1126_b;
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, 0, (($var12 % 16 | 0) * 16 | 0) + ($var3 * 16 | 0) | 0, (($var12 / 16 | 0) * 16 | 0) + ($var4 * 16 | 0) | 0, 16, 16, 6408, 5121, $this.$imageDataB1);
|
||||
if (nms_RenderEngine_useMipmaps) {
|
||||
$var5 = 1;
|
||||
while (true) {
|
||||
if ($var5 > 4)
|
||||
break a;
|
||||
$var6 = 16 >> ($var5 - 1 | 0);
|
||||
$var7_0 = 16 >> $var5;
|
||||
$var8 = 0;
|
||||
while ($var8 < $var7_0) {
|
||||
$var9 = 0;
|
||||
while ($var9 < $var7_0) {
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var11_0 = $var8 * 2 | 0;
|
||||
$var10 = $var11_0 + 0 | 0;
|
||||
$var11 = $var9 * 2 | 0;
|
||||
$var12 = $rt_imul($var11 + 0 | 0, $var6);
|
||||
$var10_0 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var12 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var5_0 = $var11_0 + 1 | 0;
|
||||
$var11_0 = jn_ByteBufferImpl_getInt($tmp_0, ($var5_0 + $var12 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var11 = $rt_imul($var11 + 1 | 0, $var6);
|
||||
$var12 = jn_ByteBufferImpl_getInt($tmp_0, ($var5_0 + $var11 | 0) * 4 | 0);
|
||||
$var13 = jn_ByteBufferImpl_getInt($this.$imageDataB1, ($var10 + $var11 | 0) * 4 | 0);
|
||||
$var14 = nms_RenderEngine_averageColor($this, nms_RenderEngine_averageColor($this, $var10_0, $var11_0), nms_RenderEngine_averageColor($this, $var12, $var13));
|
||||
jn_ByteBufferImpl_putInt($this.$imageDataB2, ($var8 + $rt_imul($var9, $var7_0) | 0) * 4 | 0, $var14);
|
||||
$var9 = $var9 + 1 | 0;
|
||||
}
|
||||
$var8 = $var8 + 1 | 0;
|
||||
}
|
||||
$var11 = $var2.$field_1126_b;
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, $var5, $rt_imul($var11 % 16 | 0, $var7_0), $rt_imul($var11 / 16 | 0, $var7_0), $var7_0, $var7_0, 6408, 5121, $this.$imageDataB2);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$this.$imageDataB1 = $this.$imageDataB2;
|
||||
$this.$imageDataB2 = $tmp_0;
|
||||
$var5 = $var5 + 1 | 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
$var4 = $var4 + 1 | 0;
|
||||
}
|
||||
$var3 = $var3 + 1 | 0;
|
||||
}
|
||||
olo_EaglerAdapterGL30_bytesUploaded = olo_EaglerAdapterGL30_bytesUploaded + jn_Buffer_remaining(var$3) | 0;
|
||||
nlea_EaglerAdapterImpl2_$callClinit();
|
||||
var$6 = jn_Buffer_remaining(var$3);
|
||||
var$7 = 0;
|
||||
while (var$7 < var$6) {
|
||||
$texturefx = nlea_EaglerAdapterImpl2_uploadBuffer;
|
||||
var$8 = (jn_ByteBufferImpl_get(var$3) & 255) << 16 >> 16;
|
||||
var$7;
|
||||
$texturefx[var$7] = var$8;
|
||||
var$7 = var$7 + 1 | 0;
|
||||
}
|
||||
var$3 = new $rt_globals.Uint8Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer, 0, var$6);
|
||||
nlea_EaglerAdapterImpl2_webgl.texSubImage2D(3553, 0, var$5, var$4, 16, 16, 6408, 5121, var$3);
|
||||
$i = $i + 1 | 0;
|
||||
$texturefx = $this.$textureList;
|
||||
if ($i >= $texturefx.$size)
|
||||
$var1 = $var1 + 1 | 0;
|
||||
$tmp_0 = $this.$textureList;
|
||||
if ($var1 >= $tmp_0.$size) {
|
||||
$var5 = 0;
|
||||
while (true) {
|
||||
$tmp_0 = $this.$textureList;
|
||||
if ($var5 >= $tmp_0.$size)
|
||||
break;
|
||||
b: {
|
||||
$var2 = ju_ArrayList_get($tmp_0, $var5);
|
||||
if ($var2.$field_1130_d > 0) {
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $var2.$field_1127_a);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
jn_Buffer_position0($tmp_0, 0);
|
||||
jn_Buffer_limit($tmp_0, $var2.$field_1127_a.data.length);
|
||||
jn_Buffer_clear($this.$imageDataB2);
|
||||
olo_EaglerAdapterGL30_glBindTexture(3553, $var2.$field_1130_d);
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, 0, 0, 0, 16, 16, 6408, 5121, $this.$imageDataB1);
|
||||
if (nms_RenderEngine_useMipmaps) {
|
||||
$var3 = 1;
|
||||
while (true) {
|
||||
if ($var3 > 4)
|
||||
break b;
|
||||
$var4 = 16 >> ($var3 - 1 | 0);
|
||||
$var5_0 = 16 >> $var3;
|
||||
$var6 = 0;
|
||||
while ($var6 < $var5_0) {
|
||||
$var7 = 0;
|
||||
while ($var7 < $var5_0) {
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var1 = $var6 * 2 | 0;
|
||||
$var12 = $var1 + 0 | 0;
|
||||
$var11 = $var7 * 2 | 0;
|
||||
$var9 = $rt_imul($var11 + 0 | 0, $var4);
|
||||
$var8 = jn_ByteBufferImpl_getInt($tmp_0, ($var12 + $var9 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var10 = $var1 + 1 | 0;
|
||||
$var9 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var9 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var1 = $rt_imul($var11 + 1 | 0, $var4);
|
||||
$var10 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var1 | 0) * 4 | 0);
|
||||
$var11 = jn_ByteBufferImpl_getInt($this.$imageDataB1, ($var12 + $var1 | 0) * 4 | 0);
|
||||
$var12 = nms_RenderEngine_averageColor($this, nms_RenderEngine_averageColor($this, $var8, $var9), nms_RenderEngine_averageColor($this, $var10, $var11));
|
||||
jn_ByteBufferImpl_putInt($this.$imageDataB2, ($var6 + $rt_imul($var7, $var5_0) | 0) * 4 | 0, $var12);
|
||||
$var7 = $var7 + 1 | 0;
|
||||
}
|
||||
$var6 = $var6 + 1 | 0;
|
||||
}
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, $var3, 0, 0, $var5_0, $var5_0, 6408, 5121, $this.$imageDataB2);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$this.$imageDataB1 = $this.$imageDataB2;
|
||||
$this.$imageDataB2 = $tmp_0;
|
||||
$var3 = $var3 + 1 | 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$var5 = $var5 + 1 | 0;
|
||||
}
|
||||
return;
|
||||
$texturefx = ju_ArrayList_get($texturefx, $i);
|
||||
$texturefx.$field_1131_c = $this.$options.$anaglyph;
|
||||
$texturefx.$func_783_a();
|
||||
}
|
||||
$var2 = ju_ArrayList_get($tmp_0, $var1);
|
||||
$var2.$field_1131_c = $this.$options.$anaglyph;
|
||||
$var2.$func_783_a();
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $var2.$field_1127_a);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
jn_Buffer_position0($tmp_0, 0);
|
||||
jn_Buffer_limit($tmp_0, $var2.$field_1127_a.data.length);
|
||||
continue main;
|
||||
default: $rt_invalidPointer();
|
||||
}}
|
||||
$rt_nativeThread().push($this, $i, $texturefx, var$3, var$4, var$5, var$6, var$7, var$8, $ptr);
|
||||
$rt_nativeThread().push($this, $var1, $tmp_0, $var5, $var2, $var3, $var4, $var5_0, $var6, $var7, $var12, $var11, $var9, $var8, $var10, $var7_0, $var11_0, $var10_0, $var13, $var14, $ptr);
|
||||
}
|
||||
function nms_RenderEngine__clinit_() {
|
||||
nms_RenderEngine_useMipmaps = 0;
|
||||
|
|
257
web/js/app.js
257
web/js/app.js
|
@ -13995,6 +13995,28 @@
|
|||
nlea_EaglerAdapterImpl2_$callClinit();
|
||||
nlea_EaglerAdapterImpl2_webgl.drawElements(4, $v3, 5123, $p2);
|
||||
}
|
||||
function olo_EaglerAdapterGL30_glTexSubImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9) {
|
||||
var var$10, var$11;
|
||||
olo_EaglerAdapterGL30_$callClinit();
|
||||
switch ($p1) {
|
||||
case 3553:
|
||||
break;
|
||||
default:
|
||||
}
|
||||
olo_EaglerAdapterGL30_bytesUploaded = olo_EaglerAdapterGL30_bytesUploaded + jn_Buffer_remaining($p9) | 0;
|
||||
nlea_EaglerAdapterImpl2_$callClinit();
|
||||
$p1 = jn_Buffer_remaining($p9);
|
||||
$p7 = 0;
|
||||
while ($p7 < $p1) {
|
||||
var$10 = nlea_EaglerAdapterImpl2_uploadBuffer;
|
||||
$p8 = (jn_ByteBufferImpl_get($p9) & 255) << 16 >> 16;
|
||||
$p7;
|
||||
var$10[$p7] = $p8;
|
||||
$p7 = $p7 + 1 | 0;
|
||||
}
|
||||
var$11 = new $rt_globals.Uint8Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer, 0, $p1);
|
||||
nlea_EaglerAdapterImpl2_webgl.texSubImage2D(3553, $p2, $p3, $p4, $p5, $p6, 6408, 5121, var$11);
|
||||
}
|
||||
function olo_EaglerAdapterGL30_glFogi($p1, $p2) {
|
||||
olo_EaglerAdapterGL30_$callClinit();
|
||||
a: {
|
||||
|
@ -53311,66 +53333,215 @@
|
|||
olo_EaglerAdapterGL30_glBindTexture(3553, $i);
|
||||
}
|
||||
function nms_RenderEngine_func_1067_a($this) {
|
||||
var $i, $texturefx, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp;
|
||||
var $var1, $tmp_0, $var5, $var2, $var3, $var4, $var5_0, $var6, $var7, $var12, $var11, $var9, $var8, $var10, $var7_0, $var11_0, $var10_0, $var13, $var14, $ptr, $tmp;
|
||||
$ptr = 0;
|
||||
if ($rt_resuming()) {
|
||||
var $thread = $rt_nativeThread();
|
||||
$ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$texturefx = $thread.pop();$i = $thread.pop();$this = $thread.pop();
|
||||
$ptr = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var10_0 = $thread.pop();$var11_0 = $thread.pop();$var7_0 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var9 = $thread.pop();$var11 = $thread.pop();$var12 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5_0 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var5 = $thread.pop();$tmp_0 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop();
|
||||
}
|
||||
main: while (true) { switch ($ptr) {
|
||||
case 0:
|
||||
$i = 0;
|
||||
$texturefx = $this.$textureList;
|
||||
if ($i >= $texturefx.$size)
|
||||
$var1 = 0;
|
||||
$tmp_0 = $this.$textureList;
|
||||
if ($var1 >= $tmp_0.$size) {
|
||||
$var5 = 0;
|
||||
while (true) {
|
||||
$tmp_0 = $this.$textureList;
|
||||
if ($var5 >= $tmp_0.$size)
|
||||
break;
|
||||
a: {
|
||||
$var2 = ju_ArrayList_get($tmp_0, $var5);
|
||||
if ($var2.$field_1130_d > 0) {
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $var2.$field_1127_a);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
jn_Buffer_position0($tmp_0, 0);
|
||||
jn_Buffer_limit($tmp_0, $var2.$field_1127_a.data.length);
|
||||
jn_Buffer_clear($this.$imageDataB2);
|
||||
olo_EaglerAdapterGL30_glBindTexture(3553, $var2.$field_1130_d);
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, 0, 0, 0, 16, 16, 6408, 5121, $this.$imageDataB1);
|
||||
if (nms_RenderEngine_useMipmaps) {
|
||||
$var3 = 1;
|
||||
while (true) {
|
||||
if ($var3 > 4)
|
||||
break a;
|
||||
$var4 = 16 >> ($var3 - 1 | 0);
|
||||
$var5_0 = 16 >> $var3;
|
||||
$var6 = 0;
|
||||
while ($var6 < $var5_0) {
|
||||
$var7 = 0;
|
||||
while ($var7 < $var5_0) {
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var1 = $var6 * 2 | 0;
|
||||
$var12 = $var1 + 0 | 0;
|
||||
$var11 = $var7 * 2 | 0;
|
||||
$var9 = $rt_imul($var11 + 0 | 0, $var4);
|
||||
$var8 = jn_ByteBufferImpl_getInt($tmp_0, ($var12 + $var9 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var10 = $var1 + 1 | 0;
|
||||
$var9 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var9 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var1 = $rt_imul($var11 + 1 | 0, $var4);
|
||||
$var10 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var1 | 0) * 4 | 0);
|
||||
$var11 = jn_ByteBufferImpl_getInt($this.$imageDataB1, ($var12 + $var1 | 0) * 4 | 0);
|
||||
$var12 = nms_RenderEngine_averageColor($this, nms_RenderEngine_averageColor($this, $var8, $var9), nms_RenderEngine_averageColor($this, $var10, $var11));
|
||||
jn_ByteBufferImpl_putInt($this.$imageDataB2, ($var6 + $rt_imul($var7, $var5_0) | 0) * 4 | 0, $var12);
|
||||
$var7 = $var7 + 1 | 0;
|
||||
}
|
||||
$var6 = $var6 + 1 | 0;
|
||||
}
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, $var3, 0, 0, $var5_0, $var5_0, 6408, 5121, $this.$imageDataB2);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$this.$imageDataB1 = $this.$imageDataB2;
|
||||
$this.$imageDataB2 = $tmp_0;
|
||||
$var3 = $var3 + 1 | 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$var5 = $var5 + 1 | 0;
|
||||
}
|
||||
return;
|
||||
$texturefx = ju_ArrayList_get($texturefx, $i);
|
||||
$texturefx.$field_1131_c = $this.$options.$anaglyph;
|
||||
$texturefx.$func_783_a();
|
||||
}
|
||||
$var2 = ju_ArrayList_get($tmp_0, $var1);
|
||||
$var2.$field_1131_c = $this.$options.$anaglyph;
|
||||
$var2.$func_783_a();
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $var2.$field_1127_a);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
jn_Buffer_position0($tmp_0, 0);
|
||||
jn_Buffer_limit($tmp_0, $var2.$field_1127_a.data.length);
|
||||
$ptr = 1;
|
||||
case 1:
|
||||
nms_TextureFX_func_782_a($texturefx, $this);
|
||||
nms_TextureFX_func_782_a($var2, $this);
|
||||
if ($rt_suspending()) {
|
||||
break main;
|
||||
}
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $texturefx.$field_1127_a);
|
||||
var$3 = $this.$imageDataB1;
|
||||
jn_Buffer_position0(var$3, 0);
|
||||
jn_Buffer_limit(var$3, 1024);
|
||||
var$4 = $texturefx.$field_1126_b;
|
||||
var$5 = (var$4 % 16 | 0) * 16 | 0;
|
||||
var$4 = (var$4 / 16 | 0) * 16 | 0;
|
||||
var$3 = $this.$imageDataB1;
|
||||
olo_EaglerAdapterGL30_$callClinit();
|
||||
switch (3553) {
|
||||
case 3553:
|
||||
break;
|
||||
default:
|
||||
jn_Buffer_clear($this.$imageDataB2);
|
||||
$var3 = 0;
|
||||
while ($var3 < $var2.$field_1129_e) {
|
||||
$var4 = 0;
|
||||
while ($var4 < $var2.$field_1129_e) {
|
||||
a: {
|
||||
$var12 = $var2.$field_1126_b;
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, 0, (($var12 % 16 | 0) * 16 | 0) + ($var3 * 16 | 0) | 0, (($var12 / 16 | 0) * 16 | 0) + ($var4 * 16 | 0) | 0, 16, 16, 6408, 5121, $this.$imageDataB1);
|
||||
if (nms_RenderEngine_useMipmaps) {
|
||||
$var5 = 1;
|
||||
while (true) {
|
||||
if ($var5 > 4)
|
||||
break a;
|
||||
$var6 = 16 >> ($var5 - 1 | 0);
|
||||
$var7_0 = 16 >> $var5;
|
||||
$var8 = 0;
|
||||
while ($var8 < $var7_0) {
|
||||
$var9 = 0;
|
||||
while ($var9 < $var7_0) {
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var11_0 = $var8 * 2 | 0;
|
||||
$var10 = $var11_0 + 0 | 0;
|
||||
$var11 = $var9 * 2 | 0;
|
||||
$var12 = $rt_imul($var11 + 0 | 0, $var6);
|
||||
$var10_0 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var12 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var5_0 = $var11_0 + 1 | 0;
|
||||
$var11_0 = jn_ByteBufferImpl_getInt($tmp_0, ($var5_0 + $var12 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var11 = $rt_imul($var11 + 1 | 0, $var6);
|
||||
$var12 = jn_ByteBufferImpl_getInt($tmp_0, ($var5_0 + $var11 | 0) * 4 | 0);
|
||||
$var13 = jn_ByteBufferImpl_getInt($this.$imageDataB1, ($var10 + $var11 | 0) * 4 | 0);
|
||||
$var14 = nms_RenderEngine_averageColor($this, nms_RenderEngine_averageColor($this, $var10_0, $var11_0), nms_RenderEngine_averageColor($this, $var12, $var13));
|
||||
jn_ByteBufferImpl_putInt($this.$imageDataB2, ($var8 + $rt_imul($var9, $var7_0) | 0) * 4 | 0, $var14);
|
||||
$var9 = $var9 + 1 | 0;
|
||||
}
|
||||
$var8 = $var8 + 1 | 0;
|
||||
}
|
||||
$var11 = $var2.$field_1126_b;
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, $var5, $rt_imul($var11 % 16 | 0, $var7_0), $rt_imul($var11 / 16 | 0, $var7_0), $var7_0, $var7_0, 6408, 5121, $this.$imageDataB2);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$this.$imageDataB1 = $this.$imageDataB2;
|
||||
$this.$imageDataB2 = $tmp_0;
|
||||
$var5 = $var5 + 1 | 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
$var4 = $var4 + 1 | 0;
|
||||
}
|
||||
$var3 = $var3 + 1 | 0;
|
||||
}
|
||||
olo_EaglerAdapterGL30_bytesUploaded = olo_EaglerAdapterGL30_bytesUploaded + jn_Buffer_remaining(var$3) | 0;
|
||||
nlea_EaglerAdapterImpl2_$callClinit();
|
||||
var$6 = jn_Buffer_remaining(var$3);
|
||||
var$7 = 0;
|
||||
while (var$7 < var$6) {
|
||||
$texturefx = nlea_EaglerAdapterImpl2_uploadBuffer;
|
||||
var$8 = (jn_ByteBufferImpl_get(var$3) & 255) << 16 >> 16;
|
||||
var$7;
|
||||
$texturefx[var$7] = var$8;
|
||||
var$7 = var$7 + 1 | 0;
|
||||
}
|
||||
var$3 = new $rt_globals.Uint8Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer, 0, var$6);
|
||||
nlea_EaglerAdapterImpl2_webgl.texSubImage2D(3553, 0, var$5, var$4, 16, 16, 6408, 5121, var$3);
|
||||
$i = $i + 1 | 0;
|
||||
$texturefx = $this.$textureList;
|
||||
if ($i >= $texturefx.$size)
|
||||
$var1 = $var1 + 1 | 0;
|
||||
$tmp_0 = $this.$textureList;
|
||||
if ($var1 >= $tmp_0.$size) {
|
||||
$var5 = 0;
|
||||
while (true) {
|
||||
$tmp_0 = $this.$textureList;
|
||||
if ($var5 >= $tmp_0.$size)
|
||||
break;
|
||||
b: {
|
||||
$var2 = ju_ArrayList_get($tmp_0, $var5);
|
||||
if ($var2.$field_1130_d > 0) {
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $var2.$field_1127_a);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
jn_Buffer_position0($tmp_0, 0);
|
||||
jn_Buffer_limit($tmp_0, $var2.$field_1127_a.data.length);
|
||||
jn_Buffer_clear($this.$imageDataB2);
|
||||
olo_EaglerAdapterGL30_glBindTexture(3553, $var2.$field_1130_d);
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, 0, 0, 0, 16, 16, 6408, 5121, $this.$imageDataB1);
|
||||
if (nms_RenderEngine_useMipmaps) {
|
||||
$var3 = 1;
|
||||
while (true) {
|
||||
if ($var3 > 4)
|
||||
break b;
|
||||
$var4 = 16 >> ($var3 - 1 | 0);
|
||||
$var5_0 = 16 >> $var3;
|
||||
$var6 = 0;
|
||||
while ($var6 < $var5_0) {
|
||||
$var7 = 0;
|
||||
while ($var7 < $var5_0) {
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var1 = $var6 * 2 | 0;
|
||||
$var12 = $var1 + 0 | 0;
|
||||
$var11 = $var7 * 2 | 0;
|
||||
$var9 = $rt_imul($var11 + 0 | 0, $var4);
|
||||
$var8 = jn_ByteBufferImpl_getInt($tmp_0, ($var12 + $var9 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var10 = $var1 + 1 | 0;
|
||||
$var9 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var9 | 0) * 4 | 0);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$var1 = $rt_imul($var11 + 1 | 0, $var4);
|
||||
$var10 = jn_ByteBufferImpl_getInt($tmp_0, ($var10 + $var1 | 0) * 4 | 0);
|
||||
$var11 = jn_ByteBufferImpl_getInt($this.$imageDataB1, ($var12 + $var1 | 0) * 4 | 0);
|
||||
$var12 = nms_RenderEngine_averageColor($this, nms_RenderEngine_averageColor($this, $var8, $var9), nms_RenderEngine_averageColor($this, $var10, $var11));
|
||||
jn_ByteBufferImpl_putInt($this.$imageDataB2, ($var6 + $rt_imul($var7, $var5_0) | 0) * 4 | 0, $var12);
|
||||
$var7 = $var7 + 1 | 0;
|
||||
}
|
||||
$var6 = $var6 + 1 | 0;
|
||||
}
|
||||
olo_EaglerAdapterGL30_glTexSubImage2D(3553, $var3, 0, 0, $var5_0, $var5_0, 6408, 5121, $this.$imageDataB2);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
$this.$imageDataB1 = $this.$imageDataB2;
|
||||
$this.$imageDataB2 = $tmp_0;
|
||||
$var3 = $var3 + 1 | 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$var5 = $var5 + 1 | 0;
|
||||
}
|
||||
return;
|
||||
$texturefx = ju_ArrayList_get($texturefx, $i);
|
||||
$texturefx.$field_1131_c = $this.$options.$anaglyph;
|
||||
$texturefx.$func_783_a();
|
||||
}
|
||||
$var2 = ju_ArrayList_get($tmp_0, $var1);
|
||||
$var2.$field_1131_c = $this.$options.$anaglyph;
|
||||
$var2.$func_783_a();
|
||||
jn_Buffer_clear($this.$imageDataB1);
|
||||
jn_ByteBuffer_put0($this.$imageDataB1, $var2.$field_1127_a);
|
||||
$tmp_0 = $this.$imageDataB1;
|
||||
jn_Buffer_position0($tmp_0, 0);
|
||||
jn_Buffer_limit($tmp_0, $var2.$field_1127_a.data.length);
|
||||
continue main;
|
||||
default: $rt_invalidPointer();
|
||||
}}
|
||||
$rt_nativeThread().push($this, $i, $texturefx, var$3, var$4, var$5, var$6, var$7, var$8, $ptr);
|
||||
$rt_nativeThread().push($this, $var1, $tmp_0, $var5, $var2, $var3, $var4, $var5_0, $var6, $var7, $var12, $var11, $var9, $var8, $var10, $var7_0, $var11_0, $var10_0, $var13, $var14, $ptr);
|
||||
}
|
||||
function nms_RenderEngine__clinit_() {
|
||||
nms_RenderEngine_useMipmaps = 0;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user