/* Class383_Sub2 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.nio.ByteBuffer;

import jagdx.IDirect3DCubeTexture;
import jagdx.IDirect3DDevice;

public class Class383_Sub2 extends Class383 implements Interface37
{
    int anInt9958;
    
    public void method286(Class313 class313) {
	super.method283(class313);
    }
    
    public void method287(Class313 class313) {
	super.method283(class313);
    }
    
    public void method80() {
	super.method80();
    }
    
    public void method283(Class313 class313) {
	super.method283(class313);
    }
    
    public void method285() {
	((Class383_Sub2) this).aClass151_Sub2_Sub1_4300.method10187(this);
    }
    
    Class383_Sub2(Class151_Sub2_Sub1 class151_sub2_sub1, int i, boolean bool,
		  int[][] is) {
	super(class151_sub2_sub1, Class116.aClass116_1448,
	      Class155.aClass155_1894,
	      bool && ((Class151_Sub2_Sub1) class151_sub2_sub1).aBool11118,
	      i * i * 6);
	((Class383_Sub2) this).anInt9958 = i;
	if (((Class383_Sub2) this).aBool4299)
	    ((Class383_Sub2) this).aLong4302
		= (IDirect3DDevice.CreateCubeTexture
		   ((((Class151_Sub2_Sub1)
		      ((Class383_Sub2) this).aClass151_Sub2_Sub1_4300)
		     .aLong11097),
		    ((Class383_Sub2) this).anInt9958, 0, 1024, 21, 1));
	else
	    ((Class383_Sub2) this).aLong4302
		= (IDirect3DDevice.CreateCubeTexture
		   ((((Class151_Sub2_Sub1)
		      ((Class383_Sub2) this).aClass151_Sub2_Sub1_4300)
		     .aLong11097),
		    ((Class383_Sub2) this).anInt9958, 1, 0, 21, 1));
	ByteBuffer bytebuffer
	    = ((Class383_Sub2) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	((Class383_Sub2) this).aClass151_Sub2_Sub1_4300.method8242
	    (((Class383_Sub2) this).anInt9958
	     * ((Class383_Sub2) this).anInt9958 * 4);
	for (int i_0_ = 0; i_0_ < 6; i_0_++) {
	    bytebuffer.clear();
	    bytebuffer.asIntBuffer().put(is[i_0_]);
	    IDirect3DCubeTexture.Upload(((Class383_Sub2) this).aLong4302, i_0_,
					0, 0, 0,
					((Class383_Sub2) this).anInt9958,
					((Class383_Sub2) this).anInt9958,
					((Class383_Sub2) this).anInt9958 * 4,
					0,
					(((Class383_Sub2) this)
					 .aClass151_Sub2_Sub1_4300.aLong8955));
	}
    }
    
    public void method288() {
	((Class383_Sub2) this).aClass151_Sub2_Sub1_4300.method10187(this);
    }
    
    public void method284() {
	((Class383_Sub2) this).aClass151_Sub2_Sub1_4300.method10187(this);
    }
    
    public void method240() {
	((Class383_Sub2) this).aClass151_Sub2_Sub1_4300.method10187(this);
    }
    
    public void method79() {
	super.method80();
    }
    
    public void method81() {
	super.method80();
    }
}
