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

import jaggl.OpenGL;

public class Class144_Sub1_Sub3 extends Class144_Sub1
{
    int anInt11086;
    Canvas aCanvas11087;
    Class151_Sub3 aClass151_Sub3_11088;
    long aLong11089;
    int anInt11090;
    OpenGL anOpenGL11091;
    boolean aBool11092 = false;
    boolean aBool11093 = false;
    
    public int method1948() {
	return ((Class144_Sub1_Sub3) this).anInt11090;
    }
    
    Class144_Sub1_Sub3(Class151_Sub3 class151_sub3, Canvas canvas, long l) {
	((Class144_Sub1_Sub3) this).aClass151_Sub3_11088 = class151_sub3;
	((Class144_Sub1_Sub3) this).aCanvas11087 = canvas;
	((Class144_Sub1_Sub3) this).anOpenGL11091
	    = ((Class151_Sub3) class151_sub3).anOpenGL9369;
	((Class144_Sub1_Sub3) this).aLong11089 = l;
	method10177();
    }
    
    public int method1943() {
	return ((Class144_Sub1_Sub3) this).anInt11090;
    }
    
    public int method1944() {
	return ((Class144_Sub1_Sub3) this).anInt11086;
    }
    
    void method8229(int i, int i_0_) {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091
	    .surfaceResized(((Class144_Sub1_Sub3) this).aLong11089);
	method10177();
	if (this == ((Class144_Sub1_Sub3) this).aClass151_Sub3_11088
			.method2302((short) -12509))
	    ((Class144_Sub1_Sub3) this).aClass151_Sub3_11088.method8622();
    }
    
    void method10177() {
	Dimension dimension
	    = ((Class144_Sub1_Sub3) this).aCanvas11087.getSize();
	((Class144_Sub1_Sub3) this).anInt11086 = dimension.height;
	((Class144_Sub1_Sub3) this).anInt11090 = dimension.width;
    }
    
    public int method8234() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091
	    .swapBuffers(((Class144_Sub1_Sub3) this).aLong11089);
	return 0;
    }
    
    public int method8228(int i, int i_1_) {
	return 0;
    }
    
    public int method8236(int i, int i_2_) {
	return 0;
    }
    
    public void method80() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091.releaseSurface
	    (((Class144_Sub1_Sub3) this).aCanvas11087,
	     ((Class144_Sub1_Sub3) this).aLong11089);
	((Class144_Sub1_Sub3) this).aBool11092 = true;
	((Class144_Sub1_Sub3) this).aBool11093 = false;
    }
    
    public int method1947() {
	return ((Class144_Sub1_Sub3) this).anInt11090;
    }
    
    public int method1946() {
	return ((Class144_Sub1_Sub3) this).anInt11090;
    }
    
    public int method1949() {
	return ((Class144_Sub1_Sub3) this).anInt11086;
    }
    
    public int method1942() {
	return ((Class144_Sub1_Sub3) this).anInt11090;
    }
    
    void method10178() {
	Dimension dimension
	    = ((Class144_Sub1_Sub3) this).aCanvas11087.getSize();
	((Class144_Sub1_Sub3) this).anInt11086 = dimension.height;
	((Class144_Sub1_Sub3) this).anInt11090 = dimension.width;
    }
    
    Class144_Sub1_Sub3(Class151_Sub3 class151_sub3, Canvas canvas) {
	this(class151_sub3, canvas, ((Class151_Sub3) class151_sub3)
					.anOpenGL9369.prepareSurface(canvas));
    }
    
    public int method8235(int i, int i_3_) {
	return 0;
    }
    
    public int method1951() {
	return ((Class144_Sub1_Sub3) this).anInt11086;
    }
    
    boolean method321() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	if (!((Class144_Sub1_Sub3) this).aBool11093) {
	    ((Class144_Sub1_Sub3) this).anOpenGL11091
		.setSurface(((Class144_Sub1_Sub3) this).aLong11089);
	    ((Class144_Sub1_Sub3) this).aBool11093 = true;
	}
	((Class144_Sub1_Sub3) this).aClass151_Sub3_11088.method8616();
	return true;
    }
    
    boolean method1952() {
	return true;
    }
    
    public int method1950() {
	return ((Class144_Sub1_Sub3) this).anInt11086;
    }
    
    public void method316() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091.releaseSurface
	    (((Class144_Sub1_Sub3) this).aCanvas11087,
	     ((Class144_Sub1_Sub3) this).aLong11089);
	((Class144_Sub1_Sub3) this).aBool11092 = true;
	((Class144_Sub1_Sub3) this).aBool11093 = false;
    }
    
    void method8230(int i, int i_4_) {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091
	    .surfaceResized(((Class144_Sub1_Sub3) this).aLong11089);
	method10177();
	if (this == ((Class144_Sub1_Sub3) this).aClass151_Sub3_11088
			.method2302((short) -18375))
	    ((Class144_Sub1_Sub3) this).aClass151_Sub3_11088.method8622();
    }
    
    void method8227(int i, int i_5_) {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091
	    .surfaceResized(((Class144_Sub1_Sub3) this).aLong11089);
	method10177();
	if (this == ((Class144_Sub1_Sub3) this).aClass151_Sub3_11088
			.method2302((short) -31266))
	    ((Class144_Sub1_Sub3) this).aClass151_Sub3_11088.method8622();
    }
    
    public int method8232() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091
	    .swapBuffers(((Class144_Sub1_Sub3) this).aLong11089);
	return 0;
    }
    
    public int method8231() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091
	    .swapBuffers(((Class144_Sub1_Sub3) this).aLong11089);
	return 0;
    }
    
    public int method8233() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091
	    .swapBuffers(((Class144_Sub1_Sub3) this).aLong11089);
	return 0;
    }
    
    public int method8226(int i, int i_6_) {
	return 0;
    }
    
    public void method314() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	((Class144_Sub1_Sub3) this).anOpenGL11091.releaseSurface
	    (((Class144_Sub1_Sub3) this).aCanvas11087,
	     ((Class144_Sub1_Sub3) this).aLong11089);
	((Class144_Sub1_Sub3) this).aBool11092 = true;
	((Class144_Sub1_Sub3) this).aBool11093 = false;
    }
    
    boolean method1945() {
	return true;
    }
    
    boolean method320() {
	if (((Class144_Sub1_Sub3) this).aBool11092)
	    throw new IllegalStateException();
	if (!((Class144_Sub1_Sub3) this).aBool11093) {
	    ((Class144_Sub1_Sub3) this).anOpenGL11091
		.setSurface(((Class144_Sub1_Sub3) this).aLong11089);
	    ((Class144_Sub1_Sub3) this).aBool11093 = true;
	}
	((Class144_Sub1_Sub3) this).aClass151_Sub3_11088.method8616();
	return true;
    }
}
