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

import jagdx.IDirect3DCubeTexture;
import jagdx.IDirect3DDevice;

public class Class258_Sub2 extends Class258 implements Interface32
{
    int anInt10177;
    
    public void method318(Class369 class369) {
	super.method318(class369);
    }
    
    public void method319() {
	((Class258_Sub2) this).aClass87_Sub2_Sub1_4005.method17406(this);
    }
    
    public void method23() {
	super.method23();
    }
    
    public void method321(Class369 class369) {
	super.method318(class369);
    }
    
    public void method24() {
	super.method23();
    }
    
    public void method320() {
	((Class258_Sub2) this).aClass87_Sub2_Sub1_4005.method17406(this);
    }
    
    public void method317(Class369 class369) {
	super.method318(class369);
    }
    
    Class258_Sub2(Class87_Sub2_Sub1 class87_sub2_sub1, int i, boolean bool,
		  int[][] is) {
	super(class87_sub2_sub1, Class173.aClass173_2131,
	      Class90.aClass90_1040,
	      bool && ((Class87_Sub2_Sub1) class87_sub2_sub1).aBool10915,
	      i * i * 6);
	((Class258_Sub2) this).anInt10177 = i;
	if (((Class258_Sub2) this).aBool4006)
	    ((Class258_Sub2) this).aLong4007
		= (IDirect3DDevice.CreateCubeTexture
		   ((((Class87_Sub2_Sub1)
		      ((Class258_Sub2) this).aClass87_Sub2_Sub1_4005)
		     .aLong10888),
		    ((Class258_Sub2) this).anInt10177, 0, 1024, 21, 1));
	else
	    ((Class258_Sub2) this).aLong4007
		= (IDirect3DDevice.CreateCubeTexture
		   ((((Class87_Sub2_Sub1)
		      ((Class258_Sub2) this).aClass87_Sub2_Sub1_4005)
		     .aLong10888),
		    ((Class258_Sub2) this).anInt10177, 1, 0, 21, 1));
	ByteBuffer bytebuffer
	    = ((Class258_Sub2) this).aClass87_Sub2_Sub1_4005.aByteBuffer9139;
	for (int i_0_ = 0; i_0_ < 6; i_0_++) {
	    bytebuffer.clear();
	    bytebuffer.asIntBuffer().put(is[i_0_]);
	    IDirect3DCubeTexture.Upload(((Class258_Sub2) this).aLong4007, i_0_,
					0, 0, 0,
					((Class258_Sub2) this).anInt10177,
					((Class258_Sub2) this).anInt10177,
					((Class258_Sub2) this).anInt10177 * 4,
					0,
					(((Class258_Sub2) this)
					 .aClass87_Sub2_Sub1_4005.aLong9140));
	}
    }
}
