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

public class Class228 implements Interface11, Interface7, Interface21 {
	Class84_Sub1_Sub1 aClass84_Sub1_Sub1_2675;
	Class172 aClass172_2676;
	int anInt2677;
	int anInt2678;
	Class96 aClass96_2679;
	int anInt2680;

	public void method53() {
		if (((Class228) this).anInt2680 > 0) {
			int[] is = new int[1];
			is[0] = ((Class228) this).anInt2680;
			OpenGL.glDeleteRenderbuffersEXT(1, is, 0);
			((Class228) this).anInt2680 = 0;
		}
	}

	void method4580() throws Throwable {
		method4582();
		super.finalize();
	}

	public int method51() {
		return ((Class228) this).anInt2677;
	}

	void method4581() {
		if (((Class228) this).anInt2680 > 0) {
			((Class228) this).aClass84_Sub1_Sub1_2675.method16564(((Class228) this).anInt2680, (((Class228) this).anInt2677 * ((Class228) this).anInt2678 * (((Class228) this).aClass96_2679.anInt1387 * 881930587) * (((Class228) this).aClass172_2676.anInt2153 * 1893733759)));
			((Class228) this).anInt2680 = 0;
		}
	}

	public void method66(int i) {
		OpenGL.glFramebufferRenderbufferEXT(36160, i, 36161, ((Class228) this).anInt2680);
	}

	public void method54() {
		if (((Class228) this).anInt2680 > 0) {
			int[] is = new int[1];
			is[0] = ((Class228) this).anInt2680;
			OpenGL.glDeleteRenderbuffersEXT(1, is, 0);
			((Class228) this).anInt2680 = 0;
		}
	}

	void method4582() {
		if (((Class228) this).anInt2680 > 0) {
			((Class228) this).aClass84_Sub1_Sub1_2675.method16564(((Class228) this).anInt2680, (((Class228) this).anInt2677 * ((Class228) this).anInt2678 * (((Class228) this).aClass96_2679.anInt1387 * 881930587) * (((Class228) this).aClass172_2676.anInt2153 * 1893733759)));
			((Class228) this).anInt2680 = 0;
		}
	}

	public void finalize() throws Throwable {
		method4582();
		super.finalize();
	}

	public int method50() {
		return ((Class228) this).anInt2677;
	}

	public void method19() {
		if (((Class228) this).anInt2680 > 0) {
			int[] is = new int[1];
			is[0] = ((Class228) this).anInt2680;
			OpenGL.glDeleteRenderbuffersEXT(1, is, 0);
			((Class228) this).anInt2680 = 0;
		}
	}

	Class228(Class84_Sub1_Sub1 class84_sub1_sub1, Class172 class172, Class96 class96, int i, int i_0_, int i_1_) {
		((Class228) this).aClass172_2676 = class172;
		((Class228) this).aClass96_2679 = class96;
		((Class228) this).anInt2677 = i;
		((Class228) this).anInt2678 = i_0_;
		((Class228) this).aClass84_Sub1_Sub1_2675 = class84_sub1_sub1;
		int[] is = new int[1];
		OpenGL.glGenRenderbuffersEXT(1, is, 0);
		((Class228) this).anInt2680 = is[0];
		OpenGL.glBindRenderbufferEXT(36161, ((Class228) this).anInt2680);
		OpenGL.glRenderbufferStorageMultisampleEXT(36161, i_1_, Class84_Sub1_Sub1.method16568(((Class228) this).aClass172_2676, ((Class228) this).aClass96_2679), i, i_0_);
	}

	Class228(Class84_Sub1_Sub1 class84_sub1_sub1, Class172 class172, Class96 class96, int i, int i_2_) {
		((Class228) this).aClass172_2676 = class172;
		((Class228) this).aClass96_2679 = class96;
		((Class228) this).anInt2677 = i;
		((Class228) this).anInt2678 = i_2_;
		((Class228) this).aClass84_Sub1_Sub1_2675 = class84_sub1_sub1;
		int[] is = new int[1];
		OpenGL.glGenRenderbuffersEXT(1, is, 0);
		((Class228) this).anInt2680 = is[0];
		OpenGL.glBindRenderbufferEXT(36161, ((Class228) this).anInt2680);
		OpenGL.glRenderbufferStorageEXT(36161, Class84_Sub1_Sub1.method16568(((Class228) this).aClass172_2676, ((Class228) this).aClass96_2679), i, i_2_);
	}

	public int method49() {
		return ((Class228) this).anInt2678;
	}

	void method4583() throws Throwable {
		method4582();
		super.finalize();
	}

	public int method52() {
		return ((Class228) this).anInt2678;
	}

	public void method65(int i) {
		OpenGL.glFramebufferRenderbufferEXT(36160, i, 36161, ((Class228) this).anInt2680);
	}

	public void method23() {
		if (((Class228) this).anInt2680 > 0) {
			int[] is = new int[1];
			is[0] = ((Class228) this).anInt2680;
			OpenGL.glDeleteRenderbuffersEXT(1, is, 0);
			((Class228) this).anInt2680 = 0;
		}
	}

	void method4584() {
		if (((Class228) this).anInt2680 > 0) {
			((Class228) this).aClass84_Sub1_Sub1_2675.method16564(((Class228) this).anInt2680, (((Class228) this).anInt2677 * ((Class228) this).anInt2678 * (((Class228) this).aClass96_2679.anInt1387 * 881930587) * (((Class228) this).aClass172_2676.anInt2153 * 1893733759)));
			((Class228) this).anInt2680 = 0;
		}
	}

	void method4585() {
		if (((Class228) this).anInt2680 > 0) {
			((Class228) this).aClass84_Sub1_Sub1_2675.method16564(((Class228) this).anInt2680, (((Class228) this).anInt2677 * ((Class228) this).anInt2678 * (((Class228) this).aClass96_2679.anInt1387 * 881930587) * (((Class228) this).aClass172_2676.anInt2153 * 1893733759)));
			((Class228) this).anInt2680 = 0;
		}
	}
}
