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

public class Class587_Sub34_Sub17 extends Class587_Sub34 implements Interface10 {
	Class172 aClass172_10838;
	int anInt10839;
	int anInt10840;
	int anInt10841;
	int anInt10842;
	Class84_Sub3 aClass84_Sub3_10843;
	Class96 aClass96_10844;
	static int[] anIntArray10845 = new int[1];

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

	Class587_Sub34_Sub17(Class84_Sub3 class84_sub3, Class172 class172, Class96 class96, int i, int i_0_, int i_1_) {
		((Class587_Sub34_Sub17) this).aClass84_Sub3_10843 = class84_sub3;
		((Class587_Sub34_Sub17) this).anInt10840 = i;
		((Class587_Sub34_Sub17) this).anInt10841 = i_0_;
		((Class587_Sub34_Sub17) this).aClass172_10838 = class172;
		((Class587_Sub34_Sub17) this).aClass96_10844 = class96;
		OpenGL.glGenRenderbuffersEXT(1, anIntArray10845, 0);
		((Class587_Sub34_Sub17) this).anInt10839 = anIntArray10845[0];
		OpenGL.glBindRenderbufferEXT(36161, ((Class587_Sub34_Sub17) this).anInt10839);
		OpenGL.glRenderbufferStorageMultisampleEXT(36161, i_1_, Class84_Sub3.method15460((((Class587_Sub34_Sub17) this).aClass172_10838), (((Class587_Sub34_Sub17) this).aClass96_10844)), ((Class587_Sub34_Sub17) this).anInt10840, ((Class587_Sub34_Sub17) this).anInt10841);
		((Class587_Sub34_Sub17) this).anInt10842 = (((Class587_Sub34_Sub17) this).anInt10840 * ((Class587_Sub34_Sub17) this).anInt10841 * (((Class587_Sub34_Sub17) this).aClass172_10838.anInt2153 * 1893733759) * (((Class587_Sub34_Sub17) this).aClass96_10844.anInt1387 * 881930587));
	}

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

	void method17157() {
		if (((Class587_Sub34_Sub17) this).anInt10839 > 0) {
			((Class587_Sub34_Sub17) this).aClass84_Sub3_10843.method15457(((Class587_Sub34_Sub17) this).anInt10839, ((Class587_Sub34_Sub17) this).anInt10842);
			((Class587_Sub34_Sub17) this).anInt10839 = 0;
		}
	}

	public int method49() {
		return ((Class587_Sub34_Sub17) this).anInt10841;
	}

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

	void method17158() {
		if (((Class587_Sub34_Sub17) this).anInt10839 > 0) {
			((Class587_Sub34_Sub17) this).aClass84_Sub3_10843.method15457(((Class587_Sub34_Sub17) this).anInt10839, ((Class587_Sub34_Sub17) this).anInt10842);
			((Class587_Sub34_Sub17) this).anInt10839 = 0;
		}
	}

	public int method51() {
		return ((Class587_Sub34_Sub17) this).anInt10840;
	}

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

	public int method50() {
		return ((Class587_Sub34_Sub17) this).anInt10840;
	}

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

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

	public void method67(int i) {
		OpenGL.glFramebufferRenderbufferEXT(36160, i, 36161, (((Class587_Sub34_Sub17) this).anInt10839));
	}

	void method17159() throws Throwable {
		method17158();
		super.finalize();
	}

	void method17160() throws Throwable {
		method17158();
		super.finalize();
	}

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

	Class587_Sub34_Sub17(Class84_Sub3 class84_sub3, Class172 class172, Class96 class96, int i, int i_2_) {
		((Class587_Sub34_Sub17) this).aClass84_Sub3_10843 = class84_sub3;
		((Class587_Sub34_Sub17) this).anInt10840 = i;
		((Class587_Sub34_Sub17) this).anInt10841 = i_2_;
		((Class587_Sub34_Sub17) this).aClass172_10838 = class172;
		((Class587_Sub34_Sub17) this).aClass96_10844 = class96;
		OpenGL.glGenRenderbuffersEXT(1, anIntArray10845, 0);
		((Class587_Sub34_Sub17) this).anInt10839 = anIntArray10845[0];
		OpenGL.glBindRenderbufferEXT(36161, ((Class587_Sub34_Sub17) this).anInt10839);
		OpenGL.glRenderbufferStorageEXT(36161, Class84_Sub3.method15460((((Class587_Sub34_Sub17) this).aClass172_10838), (((Class587_Sub34_Sub17) this).aClass96_10844)), ((Class587_Sub34_Sub17) this).anInt10840, ((Class587_Sub34_Sub17) this).anInt10841);
		((Class587_Sub34_Sub17) this).anInt10842 = (((Class587_Sub34_Sub17) this).anInt10840 * ((Class587_Sub34_Sub17) this).anInt10841 * (((Class587_Sub34_Sub17) this).aClass172_10838.anInt2153 * 1893733759) * (((Class587_Sub34_Sub17) this).aClass96_10844.anInt1387 * 881930587));
	}

	public void method68(int i) {
		OpenGL.glFramebufferRenderbufferEXT(36160, i, 36161, (((Class587_Sub34_Sub17) this).anInt10839));
	}

	void method17161() {
		if (((Class587_Sub34_Sub17) this).anInt10839 > 0) {
			((Class587_Sub34_Sub17) this).aClass84_Sub3_10843.method15457(((Class587_Sub34_Sub17) this).anInt10839, ((Class587_Sub34_Sub17) this).anInt10842);
			((Class587_Sub34_Sub17) this).anInt10839 = 0;
		}
	}

	public int method52() {
		return ((Class587_Sub34_Sub17) this).anInt10841;
	}
}
