/* Class228 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import jaggl.OpenGL;

public class Class228 implements Interface5, Interface4, Interface21
{
    Class173 aClass173_3774;
    int anInt3775;
    int anInt3776;
    int anInt3777;
    Class87_Sub2_Sub2 aClass87_Sub2_Sub2_3778;
    Class90 aClass90_3779;
    
    void method4624() {
	if (((Class228) this).anInt3776 > 0) {
	    ((Class228) this).aClass87_Sub2_Sub2_3778.method17478
		(((Class228) this).anInt3776,
		 (((Class228) this).anInt3775 * ((Class228) this).anInt3777
		  * (((Class228) this).aClass90_3779.anInt1047 * -2141494347)
		  * (((Class228) this).aClass173_3774.anInt2128
		     * 1741343981)));
	    ((Class228) this).anInt3776 = 0;
	}
    }
    
    void method4625() {
	if (((Class228) this).anInt3776 > 0) {
	    ((Class228) this).aClass87_Sub2_Sub2_3778.method17478
		(((Class228) this).anInt3776,
		 (((Class228) this).anInt3775 * ((Class228) this).anInt3777
		  * (((Class228) this).aClass90_3779.anInt1047 * -2141494347)
		  * (((Class228) this).aClass173_3774.anInt2128
		     * 1741343981)));
	    ((Class228) this).anInt3776 = 0;
	}
    }
    
    public int method28() {
	return ((Class228) this).anInt3775;
    }
    
    void method4626() {
	if (((Class228) this).anInt3776 > 0) {
	    ((Class228) this).aClass87_Sub2_Sub2_3778.method17478
		(((Class228) this).anInt3776,
		 (((Class228) this).anInt3775 * ((Class228) this).anInt3777
		  * (((Class228) this).aClass90_3779.anInt1047 * -2141494347)
		  * (((Class228) this).aClass173_3774.anInt2128
		     * 1741343981)));
	    ((Class228) this).anInt3776 = 0;
	}
    }
    
    public void method50(int i) {
	OpenGL.glFramebufferRenderbufferEXT(36160, i, 36161,
					    ((Class228) this).anInt3776);
    }
    
    Class228(Class87_Sub2_Sub2 class87_sub2_sub2, Class173 class173,
	     Class90 class90, int i, int i_0_) {
	((Class228) this).aClass173_3774 = class173;
	((Class228) this).aClass90_3779 = class90;
	((Class228) this).anInt3775 = i;
	((Class228) this).anInt3777 = i_0_;
	((Class228) this).aClass87_Sub2_Sub2_3778 = class87_sub2_sub2;
	int[] is = new int[1];
	OpenGL.glGenRenderbuffersEXT(1, is, 0);
	((Class228) this).anInt3776 = is[0];
	OpenGL.glBindRenderbufferEXT(36161, ((Class228) this).anInt3776);
	OpenGL.glRenderbufferStorageEXT
	    (36161,
	     Class87_Sub2_Sub2.method17485(((Class228) this).aClass173_3774,
					   ((Class228) this).aClass90_3779),
	     i, i_0_);
    }
    
    void method4627() {
	if (((Class228) this).anInt3776 > 0) {
	    ((Class228) this).aClass87_Sub2_Sub2_3778.method17478
		(((Class228) this).anInt3776,
		 (((Class228) this).anInt3775 * ((Class228) this).anInt3777
		  * (((Class228) this).aClass90_3779.anInt1047 * -2141494347)
		  * (((Class228) this).aClass173_3774.anInt2128
		     * 1741343981)));
	    ((Class228) this).anInt3776 = 0;
	}
    }
    
    public void finalize() throws Throwable {
	method4624();
	super.finalize();
    }
    
    public int method25() {
	return ((Class228) this).anInt3775;
    }
    
    public void method23() {
	if (((Class228) this).anInt3776 > 0) {
	    int[] is = new int[1];
	    is[0] = ((Class228) this).anInt3776;
	    OpenGL.glDeleteRenderbuffersEXT(1, is, 0);
	    ((Class228) this).anInt3776 = 0;
	}
    }
    
    public int method29() {
	return ((Class228) this).anInt3777;
    }
    
    public int method16() {
	return ((Class228) this).anInt3777;
    }
    
    public int method15() {
	return ((Class228) this).anInt3777;
    }
    
    public void method24() {
	if (((Class228) this).anInt3776 > 0) {
	    int[] is = new int[1];
	    is[0] = ((Class228) this).anInt3776;
	    OpenGL.glDeleteRenderbuffersEXT(1, is, 0);
	    ((Class228) this).anInt3776 = 0;
	}
    }
    
    void method4628() throws Throwable {
	method4624();
	super.finalize();
    }
    
    public int method27() {
	return ((Class228) this).anInt3775;
    }
    
    public void method123(int i) {
	OpenGL.glFramebufferRenderbufferEXT(36160, i, 36161,
					    ((Class228) this).anInt3776);
    }
    
    void method4629() {
	if (((Class228) this).anInt3776 > 0) {
	    ((Class228) this).aClass87_Sub2_Sub2_3778.method17478
		(((Class228) this).anInt3776,
		 (((Class228) this).anInt3775 * ((Class228) this).anInt3777
		  * (((Class228) this).aClass90_3779.anInt1047 * -2141494347)
		  * (((Class228) this).aClass173_3774.anInt2128
		     * 1741343981)));
	    ((Class228) this).anInt3776 = 0;
	}
    }
    
    public int method26() {
	return ((Class228) this).anInt3777;
    }
    
    Class228(Class87_Sub2_Sub2 class87_sub2_sub2, Class173 class173,
	     Class90 class90, int i, int i_1_, int i_2_) {
	((Class228) this).aClass173_3774 = class173;
	((Class228) this).aClass90_3779 = class90;
	((Class228) this).anInt3775 = i;
	((Class228) this).anInt3777 = i_1_;
	((Class228) this).aClass87_Sub2_Sub2_3778 = class87_sub2_sub2;
	int[] is = new int[1];
	OpenGL.glGenRenderbuffersEXT(1, is, 0);
	((Class228) this).anInt3776 = is[0];
	OpenGL.glBindRenderbufferEXT(36161, ((Class228) this).anInt3776);
	OpenGL.glRenderbufferStorageMultisampleEXT
	    (36161, i_2_,
	     Class87_Sub2_Sub2.method17485(((Class228) this).aClass173_3774,
					   ((Class228) this).aClass90_3779),
	     i, i_1_);
    }
    
    public void method49(int i) {
	OpenGL.glFramebufferRenderbufferEXT(36160, i, 36161,
					    ((Class228) this).anInt3776);
    }
}
