/* Class171_Sub2_Sub1 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Canvas;
import java.awt.Dimension;

import jaggl.OpenGL;

public class Class171_Sub2_Sub1 extends Class171_Sub2 {
	boolean aBool10388 = false;
	Canvas aCanvas10389;
	int anInt10390;
	long aLong10391;
	Class84_Sub3 aClass84_Sub3_10392;
	int anInt10393;
	OpenGL anOpenGL10394;

	public int method15378() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.swapBuffers(((Class171_Sub2_Sub1) this).aLong10391);
		return 0;
	}

	Class171_Sub2_Sub1(Class84_Sub3 class84_sub3, Canvas canvas, long l) {
		((Class171_Sub2_Sub1) this).aClass84_Sub3_10392 = class84_sub3;
		((Class171_Sub2_Sub1) this).aCanvas10389 = canvas;
		((Class171_Sub2_Sub1) this).anOpenGL10394 = ((Class84_Sub3) class84_sub3).anOpenGL9334;
		((Class171_Sub2_Sub1) this).aLong10391 = l;
		method16595();
	}

	public int method3754() {
		return ((Class171_Sub2_Sub1) this).anInt10390;
	}

	boolean method18() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.setSurface(((Class171_Sub2_Sub1) this).aLong10391);
		((Class171_Sub2_Sub1) this).aClass84_Sub3_10392.method15396();
		return true;
	}

	void method15380(int i, int i_0_) {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.surfaceResized(((Class171_Sub2_Sub1) this).aLong10391);
		method16595();
		if (this == ((Class171_Sub2_Sub1) this).aClass84_Sub3_10392.method2063(-1527044590))
			((Class171_Sub2_Sub1) this).aClass84_Sub3_10392.method15472();
	}

	void method16595() {
		Dimension dimension = ((Class171_Sub2_Sub1) this).aCanvas10389.getSize();
		((Class171_Sub2_Sub1) this).anInt10393 = dimension.height;
		((Class171_Sub2_Sub1) this).anInt10390 = dimension.width;
	}

	public int method15383() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.swapBuffers(((Class171_Sub2_Sub1) this).aLong10391);
		return 0;
	}

	public void method250() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.releaseSurface(((Class171_Sub2_Sub1) this).aCanvas10389, ((Class171_Sub2_Sub1) this).aLong10391);
		((Class171_Sub2_Sub1) this).aBool10388 = true;
	}

	boolean method249() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.setSurface(((Class171_Sub2_Sub1) this).aLong10391);
		((Class171_Sub2_Sub1) this).aClass84_Sub3_10392.method15396();
		return true;
	}

	boolean method3756() {
		return true;
	}

	public void method54() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.releaseSurface(((Class171_Sub2_Sub1) this).aCanvas10389, ((Class171_Sub2_Sub1) this).aLong10391);
		((Class171_Sub2_Sub1) this).aBool10388 = true;
	}

	public int method15377(int i, int i_1_) {
		return 0;
	}

	public int method3755() {
		return ((Class171_Sub2_Sub1) this).anInt10393;
	}

	void method16596() {
		Dimension dimension = ((Class171_Sub2_Sub1) this).aCanvas10389.getSize();
		((Class171_Sub2_Sub1) this).anInt10393 = dimension.height;
		((Class171_Sub2_Sub1) this).anInt10390 = dimension.width;
	}

	public int method3758() {
		return ((Class171_Sub2_Sub1) this).anInt10390;
	}

	boolean method3760() {
		return true;
	}

	public void method247() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.releaseSurface(((Class171_Sub2_Sub1) this).aCanvas10389, ((Class171_Sub2_Sub1) this).aLong10391);
		((Class171_Sub2_Sub1) this).aBool10388 = true;
	}

	public void method248() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.releaseSurface(((Class171_Sub2_Sub1) this).aCanvas10389, ((Class171_Sub2_Sub1) this).aLong10391);
		((Class171_Sub2_Sub1) this).aBool10388 = true;
	}

	public int method3759() {
		return ((Class171_Sub2_Sub1) this).anInt10393;
	}

	void method15381(int i, int i_2_) {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.surfaceResized(((Class171_Sub2_Sub1) this).aLong10391);
		method16595();
		if (this == ((Class171_Sub2_Sub1) this).aClass84_Sub3_10392.method2063(346471395))
			((Class171_Sub2_Sub1) this).aClass84_Sub3_10392.method15472();
	}

	void method16597() {
		Dimension dimension = ((Class171_Sub2_Sub1) this).aCanvas10389.getSize();
		((Class171_Sub2_Sub1) this).anInt10393 = dimension.height;
		((Class171_Sub2_Sub1) this).anInt10390 = dimension.width;
	}

	public int method15382() {
		if (((Class171_Sub2_Sub1) this).aBool10388)
			throw new IllegalStateException();
		((Class171_Sub2_Sub1) this).anOpenGL10394.swapBuffers(((Class171_Sub2_Sub1) this).aLong10391);
		return 0;
	}

	Class171_Sub2_Sub1(Class84_Sub3 class84_sub3, Canvas canvas) {
		this(class84_sub3, canvas, ((Class84_Sub3) class84_sub3).anOpenGL9334.prepareSurface(canvas));
	}

	public int method15379(int i, int i_3_) {
		return 0;
	}

	void method16598() {
		Dimension dimension = ((Class171_Sub2_Sub1) this).aCanvas10389.getSize();
		((Class171_Sub2_Sub1) this).anInt10393 = dimension.height;
		((Class171_Sub2_Sub1) this).anInt10390 = dimension.width;
	}

	void method16599() {
		Dimension dimension = ((Class171_Sub2_Sub1) this).aCanvas10389.getSize();
		((Class171_Sub2_Sub1) this).anInt10393 = dimension.height;
		((Class171_Sub2_Sub1) this).anInt10390 = dimension.width;
	}

	public int method3757() {
		return ((Class171_Sub2_Sub1) this).anInt10390;
	}
}
