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

public class Class142 {
	static final int anInt1754 = 35633;
	static final int anInt1755 = 35632;
	int anInt1756;
	Class84_Sub3 aClass84_Sub3_1757;
	static int[] anIntArray1758 = new int[2];

	Class142(Class84_Sub3 class84_sub3, int i, int i_0_) {
		((Class142) this).aClass84_Sub3_1757 = class84_sub3;
		((Class142) this).anInt1756 = i;
	}

	public void finalize() throws Throwable {
		((Class142) this).aClass84_Sub3_1757.method15458((long) ((Class142) this).anInt1756);
		super.finalize();
	}

	static Class142 method3296(Class84_Sub3 class84_sub3, int i, String string) {
		int i_1_ = OpenGL.glCreateShader(i);
		OpenGL.glShaderSource(i_1_, string);
		OpenGL.glCompileShader(i_1_);
		OpenGL.glGetShaderiv(i_1_, 35713, anIntArray1758, 0);
		if (anIntArray1758[0] == 0) {
			if (anIntArray1758[0] == 0)
				System.out.println("");
			OpenGL.glGetShaderiv(i_1_, 35716, anIntArray1758, 1);
			if (anIntArray1758[1] > 1) {
				byte[] is = new byte[anIntArray1758[1]];
				OpenGL.glGetShaderInfoLog(i_1_, anIntArray1758[1], anIntArray1758, 0, is, 0);
				System.out.println(new String(is));
			}
			if (anIntArray1758[0] == 0) {
				OpenGL.glDeleteShader(i_1_);
				return null;
			}
		}
		return new Class142(class84_sub3, i_1_, i);
	}

	void method3297() throws Throwable {
		((Class142) this).aClass84_Sub3_1757.method15458((long) ((Class142) this).anInt1756);
		super.finalize();
	}

	void method3298() throws Throwable {
		((Class142) this).aClass84_Sub3_1757.method15458((long) ((Class142) this).anInt1756);
		super.finalize();
	}

	static Class142 method3299(Class84_Sub3 class84_sub3, int i, String string) {
		int i_2_ = OpenGL.glCreateShader(i);
		OpenGL.glShaderSource(i_2_, string);
		OpenGL.glCompileShader(i_2_);
		OpenGL.glGetShaderiv(i_2_, 35713, anIntArray1758, 0);
		if (anIntArray1758[0] == 0) {
			if (anIntArray1758[0] == 0)
				System.out.println("");
			OpenGL.glGetShaderiv(i_2_, 35716, anIntArray1758, 1);
			if (anIntArray1758[1] > 1) {
				byte[] is = new byte[anIntArray1758[1]];
				OpenGL.glGetShaderInfoLog(i_2_, anIntArray1758[1], anIntArray1758, 0, is, 0);
				System.out.println(new String(is));
			}
			if (anIntArray1758[0] == 0) {
				OpenGL.glDeleteShader(i_2_);
				return null;
			}
		}
		return new Class142(class84_sub3, i_2_, i);
	}

	static Class142 method3300(Class84_Sub3 class84_sub3, int i, String string) {
		int i_3_ = OpenGL.glCreateShader(i);
		OpenGL.glShaderSource(i_3_, string);
		OpenGL.glCompileShader(i_3_);
		OpenGL.glGetShaderiv(i_3_, 35713, anIntArray1758, 0);
		if (anIntArray1758[0] == 0) {
			if (anIntArray1758[0] == 0)
				System.out.println("");
			OpenGL.glGetShaderiv(i_3_, 35716, anIntArray1758, 1);
			if (anIntArray1758[1] > 1) {
				byte[] is = new byte[anIntArray1758[1]];
				OpenGL.glGetShaderInfoLog(i_3_, anIntArray1758[1], anIntArray1758, 0, is, 0);
				System.out.println(new String(is));
			}
			if (anIntArray1758[0] == 0) {
				OpenGL.glDeleteShader(i_3_);
				return null;
			}
		}
		return new Class142(class84_sub3, i_3_, i);
	}
}
