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

import java.awt.Canvas;
import java.util.Hashtable;

public class OpenGL {
	long peer;
	private Hashtable<String, String> aHashtable1822;
	private Thread aThread1823;
	private static Hashtable<Thread, OpenGL> aHashtable1824 = new Hashtable<Thread, OpenGL>();
	public static final int anInt1825 = 5120;
	public static final int anInt1826 = 5121;
	public static final int anInt1827 = 5122;
	public static final int anInt1828 = 5123;
	public static final int anInt1829 = 5124;
	public static final int anInt1830 = 5125;
	public static final int anInt1831 = 5126;
	public static final int anInt1832 = 0;
	public static final int anInt1833 = 1;
	public static final int anInt1834 = 2;
	public static final int anInt1835 = 3;
	public static final int anInt1836 = 4;
	public static final int anInt1837 = 5;
	public static final int anInt1838 = 6;
	public static final int anInt1839 = 7;
	public static final int anInt1840 = 5888;
	public static final int anInt1841 = 5889;
	public static final int anInt1842 = 5890;
	public static final int anInt1843 = 2832;
	public static final int anInt1844 = 2834;
	public static final int anInt1845 = 6913;
	public static final int anInt1846 = 6914;
	public static final int anInt1847 = 1028;
	public static final int anInt1848 = 1029;
	public static final int anInt1849 = 2884;
	public static final int anInt1850 = 4864;
	public static final int anInt1851 = 515;
	public static final int anInt1852 = 516;
	public static final int anInt1853 = 2929;
	public static final int anInt1854 = 6402;
	public static final int anInt1855 = 2896;
	public static final int anInt1856 = 16384;
	public static final int anInt1857 = 16385;
	public static final int anInt1858 = 16386;
	public static final int anInt1859 = 4615;
	public static final int anInt1860 = 4616;
	public static final int anInt1861 = 4617;
	public static final int anInt1862 = 4608;
	public static final int anInt1863 = 4609;
	public static final int anInt1864 = 4611;
	public static final int anInt1865 = 5634;
	public static final int anInt1866 = 2899;
	public static final int anInt1867 = 1032;
	public static final int anInt1868 = 7425;
	public static final int anInt1869 = 2903;
	public static final int anInt1870 = 260;
	public static final int anInt1871 = 3008;
	public static final int anInt1872 = 3042;
	public static final int anInt1873 = 0;
	public static final int anInt1874 = 1;
	public static final int anInt1875 = 768;
	public static final int anInt1876 = 769;
	public static final int anInt1877 = 770;
	public static final int anInt1878 = 771;
	public static final int anInt1879 = 774;
	public static final int anInt1880 = 2912;
	public static final int anInt1881 = 2917;
	public static final int anInt1882 = 2914;
	public static final int anInt1883 = 2918;
	public static final int anInt1884 = 2915;
	public static final int anInt1885 = 2916;
	public static final int anInt1886 = 9729;
	public static final int anInt1887 = 7681;
	public static final int anInt1888 = 6406;
	public static final int anInt1889 = 6409;
	public static final int anInt1890 = 6410;
	public static final int anInt1891 = 6144;
	public static final int anInt1892 = 6407;
	public static final int anInt1893 = 6408;
	public static final int anInt1894 = 2982;
	public static final int anInt1895 = 3156;
	public static final int anInt1896 = 4353;
	public static final int anInt1897 = 3089;
	public static final int anInt1898 = 3348;
	public static final int anInt1899 = 3349;
	public static final int anInt1900 = 3352;
	public static final int anInt1901 = 3353;
	public static final int anInt1902 = 3354;
	public static final int anInt1903 = 3355;
	public static final int anInt1904 = 3317;
	public static final int anInt1905 = 3314;
	public static final int anInt1906 = 8960;
	public static final int anInt1907 = 8704;
	public static final int anInt1908 = 3552;
	public static final int anInt1909 = 3553;
	public static final int anInt1910 = 10242;
	public static final int anInt1911 = 10243;
	public static final int anInt1912 = 10240;
	public static final int anInt1913 = 10241;
	public static final int anInt1914 = 8705;
	public static final int anInt1915 = 3168;
	public static final int anInt1916 = 3169;
	public static final int anInt1917 = 9472;
	public static final int anInt1918 = 9984;
	public static final int anInt1919 = 9987;
	public static final int anInt1920 = 9217;
	public static final int anInt1921 = 9473;
	public static final int anInt1922 = 9216;
	public static final int anInt1923 = 9474;
	public static final int anInt1924 = 8448;
	public static final int anInt1925 = 9728;
	public static final int anInt1926 = 10497;
	public static final int anInt1927 = 8192;
	public static final int anInt1928 = 8193;
	public static final int anInt1929 = 8194;
	public static final int anInt1930 = 8195;
	public static final int anInt1931 = 3170;
	public static final int anInt1932 = 3171;
	public static final int anInt1933 = 7936;
	public static final int anInt1934 = 7937;
	public static final int anInt1935 = 7938;
	private static final int anInt1936 = 7939;
	public static final int anInt1937 = 256;
	public static final int anInt1938 = 1024;
	public static final int anInt1939 = 2048;
	public static final int anInt1940 = 16384;
	public static final int anInt1941 = 32830;
	public static final int anInt1942 = 32834;
	public static final int anInt1943 = 32852;
	public static final int anInt1944 = 32859;
	public static final int anInt1945 = 32884;
	public static final int anInt1946 = 32885;
	public static final int anInt1947 = 32886;
	public static final int anInt1948 = 32888;
	public static final int anInt1949 = 32879;
	public static final int anInt1950 = 33639;
	public static final int anInt1951 = 32993;
	public static final int anInt1952 = 33071;
	public static final int anInt1953 = 33984;
	public static final int anInt1954 = 33985;
	public static final int anInt1955 = 34018;
	public static final int anInt1956 = 32925;
	public static final int anInt1957 = 32926;
	public static final int anInt1958 = 34065;
	public static final int anInt1959 = 34066;
	public static final int anInt1960 = 34067;
	public static final int anInt1961 = 34069;
	public static final int anInt1962 = 34070;
	public static final int anInt1963 = 34071;
	public static final int anInt1964 = 34072;
	public static final int anInt1965 = 34073;
	public static final int anInt1966 = 34074;
	public static final int anInt1967 = 34160;
	public static final int anInt1968 = 34161;
	public static final int anInt1969 = 34162;
	public static final int anInt1970 = 34176;
	public static final int anInt1971 = 34178;
	public static final int anInt1972 = 34184;
	public static final int anInt1973 = 34186;
	public static final int anInt1974 = 34192;
	public static final int anInt1975 = 34200;
	public static final int anInt1976 = 34163;
	public static final int anInt1977 = 34165;
	public static final int anInt1978 = 34023;
	public static final int anInt1979 = 34166;
	public static final int anInt1980 = 34167;
	public static final int anInt1981 = 34168;
	public static final int anInt1982 = 34479;
	public static final int anInt1983 = 33189;
	public static final int anInt1984 = 33190;
	public static final int anInt1985 = 33191;
	public static final int anInt1986 = 34895;
	public static final int anInt1987 = 35000;
	public static final int anInt1988 = 35001;
	public static final int anInt1989 = 35041;
	public static final int anInt1990 = 34929;
	public static final int anInt1991 = 34930;
	public static final int anInt1992 = 35632;
	public static final int anInt1993 = 35633;
	public static final int anInt1994 = 35724;
	public static final int anInt1995 = 35051;
	public static final int anInt1996 = 34336;
	public static final int anInt1997 = 34379;
	public static final int anInt1998 = 34933;
	public static final int anInt1999 = 34820;
	public static final int anInt2000 = 34962;
	public static final int anInt2001 = 34963;
	public static final int anInt2002 = 35040;
	public static final int anInt2003 = 35044;
	public static final int anInt2004 = 35713;
	public static final int anInt2005 = 35714;
	public static final int anInt2006 = 35716;
	public static final int anInt2007 = 35633;
	public static final int anInt2008 = 35632;
	public static final int anInt2009 = 34037;
	public static final int anInt2010 = 5131;
	public static final int anInt2011 = 34836;
	public static final int anInt2012 = 34837;
	public static final int anInt2013 = 34838;
	public static final int anInt2014 = 34840;
	public static final int anInt2015 = 34841;
	public static final int anInt2016 = 34842;
	public static final int anInt2017 = 34843;
	public static final int anInt2018 = 34844;
	public static final int anInt2019 = 34846;
	public static final int anInt2020 = 34847;
	public static final int anInt2021 = 33777;
	public static final int anInt2022 = 33779;
	public static final int anInt2023 = 36053;
	public static final int anInt2024 = 36064;
	public static final int anInt2025 = 36096;
	public static final int anInt2026 = 36160;
	public static final int anInt2027 = 36161;
	public static final int anInt2028 = 36008;
	public static final int anInt2029 = 36219;
	public static final int anInt2030 = 37143;
	public static final int anInt2031 = 37147;
	public static final int anInt2032 = 37149;

	public native long init(Canvas canvas, int i, int i_0_, int i_1_, int i_2_, int i_3_, int i_4_);

	public native boolean arePbuffersAvailable();

	public boolean method2576(String string) {
		if (null == aHashtable1822) {
			aHashtable1822 = new Hashtable<String, String>();
			String string_5_ = glGetString(7939);
			int i = 0;
			for (;;) {
				int i_6_ = string_5_.indexOf(' ', i);
				if (-1 == i_6_)
					break;
				String string_7_ = string_5_.substring(i, i_6_).trim();
				if (string_7_.length() != 0)
					aHashtable1822.put(string_7_, string_7_);
				i = 1 + i_6_;
			}
			String string_8_ = string_5_.substring(i).trim();
			if (string_8_.length() != 0)
				aHashtable1822.put(string_8_, string_8_);
		}
		return aHashtable1822.containsKey(string);
	}

	public synchronized boolean method2577() {
		Thread thread = Thread.currentThread();
		if (attachPeer()) {
			OpenGL opengl_9_ = (OpenGL) aHashtable1824.put(thread, this);
			if (opengl_9_ != null)
				opengl_9_.aThread1823 = null;
			aThread1823 = thread;
			return true;
		}
		return false;
	}

	public synchronized boolean method2578() {
		if (aThread1823 != Thread.currentThread())
			return false;
		detachPeer();
		aHashtable1824.remove(aThread1823);
		aThread1823 = null;
		return true;
	}

	private native boolean attachPeer();

	private native void detachPeer();

	public native long prepareSurface(Canvas canvas);

	public native void surfaceResized(long l);

	public native void releaseSurface(Canvas canvas, long l);

	public native boolean setSurface(long l);

	public native long createPbuffer(int i, int i_10_);

	public native void releasePbuffer(long l);

	public native void setPbuffer(long l);

	public native void swapBuffers(long l);

	public native void setSwapInterval(int i);

	public native void release();

	public static native void glEnable(int i);

	public static native void glDisable(int i);

	public static native void glCullFace(int i);

	public static native void glPushAttrib(int i);

	public static native void glPopAttrib();

	public static native void glShadeModel(int i);

	public static native void glHint(int i, int i_11_);

	public static native void glFinish();

	public static native void glFlush();

	public static native void glClear(int i);

	public static native void glClearColor(float f, float f_12_, float f_13_, float f_14_);

	public static native void glClearDepth(float f);

	public static native void glDepthFunc(int i);

	public static native void glDepthMask(boolean bool);

	public static native void glDepthRange(float f, float f_15_);

	public static native void glAlphaFunc(int i, float f);

	public static native void glColorMask(boolean bool, boolean bool_16_, boolean bool_17_, boolean bool_18_);

	public static native void glReadBuffer(int i);

	public static native void glDrawBuffer(int i);

	public static native void glDrawBuffersARB(int i, int[] is, int i_19_);

	public static native void glMatrixMode(int i);

	public static native void glPushMatrix();

	public static native void glPopMatrix();

	public static native void glLoadIdentity();

	public static native void glOrtho(double d, double d_20_, double d_21_, double d_22_, double d_23_, double d_24_);

	public static native void glFrustum(double d, double d_25_, double d_26_, double d_27_, double d_28_, double d_29_);

	public static native void glTranslatef(float f, float f_30_, float f_31_);

	public static native void glRotatef(float f, float f_32_, float f_33_, float f_34_);

	public static native void glScalef(float f, float f_35_, float f_36_);

	public static native void glLoadMatrixf(float[] fs, int i);

	public static native void glMultMatrixf(float[] fs, int i);

	public static native void glViewport(int i, int i_37_, int i_38_, int i_39_);

	public static native void glScissor(int i, int i_40_, int i_41_, int i_42_);

	public static native int glGenLists(int i);

	public static native void glDeleteLists(int i, int i_43_);

	public static native void glNewList(int i, int i_44_);

	public static native void glEndList();

	public static native void glCallList(int i);

	public static native void glBegin(int i);

	public static native void glVertex2i(int i, int i_45_);

	public static native void glVertex2f(float f, float f_46_);

	public static native void glVertex3f(float f, float f_47_, float f_48_);

	public static native void glNormal3f(float f, float f_49_, float f_50_);

	public static native void glColor3f(float f, float f_51_, float f_52_);

	public static native void glColor4f(float f, float f_53_, float f_54_, float f_55_);

	public static native void glColor3ub(byte i, byte i_56_, byte i_57_);

	public static native void glColor4ub(byte i, byte i_58_, byte i_59_, byte i_60_);

	public static native void glTexCoord2i(int i, int i_61_);

	public static native void glTexCoord3i(int i, int i_62_, int i_63_);

	public static native void glTexCoord2f(float f, float f_64_);

	public static native void glTexCoord3f(float f, float f_65_, float f_66_);

	public static native void glMultiTexCoord2i(int i, int i_67_, int i_68_);

	public static native void glMultiTexCoord3i(int i, int i_69_, int i_70_, int i_71_);

	public static native void glMultiTexCoord2f(int i, float f, float f_72_);

	public static native void glRasterPos2i(int i, int i_73_);

	public static native void glEnd();

	public static native void glEnableClientState(int i);

	public static native void glDisableClientState(int i);

	public static native void glClientActiveTexture(int i);

	public static native void glVertexPointer(int i, int i_74_, int i_75_, long l);

	public static native void glNormalPointer(int i, int i_76_, long l);

	public static native void glColorPointer(int i, int i_77_, int i_78_, long l);

	public static native void glTexCoordPointer(int i, int i_79_, int i_80_, long l);

	public static native void glVertexAttribPointer(int i, int i_81_, int i_82_, boolean bool, int i_83_, long l);

	public static native void glEnableVertexAttribArray(int i);

	public static native void glDisableVertexAttribArray(int i);

	public static native void glBindAttribLocation(int i, int i_84_, String string);

	public static native int glGetAttribLocation(int i, String string);

	public static native void glGenBuffersARB(int i, int[] is, int i_85_);

	public static native void glBindBufferARB(int i, int i_86_);

	public static native void glBufferDataARBa(int i, int i_87_, long l, int i_88_);

	public static native void glBufferDataARBub(int i, int i_89_, byte[] is, int i_90_, int i_91_);

	public static native void glBufferSubDataARBa(int i, int i_92_, int i_93_, long l);

	public static native void glBufferSubDataARBub(int i, int i_94_, int i_95_, byte[] is, int i_96_);

	public static native long glMapBufferARB(int i, int i_97_);

	public static native boolean glUnmapBufferARB(int i);

	public static native void glDeleteBuffersARB(int i, int[] is, int i_98_);

	public static native void glLineWidth(float f);

	public static native void glPointSize(float f);

	public static native void glPolygonMode(int i, int i_99_);

	public static native void glDrawArrays(int i, int i_100_, int i_101_);

	public static native void glDrawElements(int i, int i_102_, int i_103_, long l);

	public static native void glGenTextures(int i, int[] is, int i_104_);

	public static native void glDeleteTextures(int i, int[] is, int i_105_);

	public static native void glActiveTexture(int i);

	public static native void glBindTexture(int i, int i_106_);

	public static native void glTexEnvi(int i, int i_107_, int i_108_);

	public static native void glTexEnvf(int i, int i_109_, float f);

	public static native void glTexEnvfv(int i, int i_110_, float[] fs, int i_111_);

	public static native void glTexGeni(int i, int i_112_, int i_113_);

	public static native void glTexGenfv(int i, int i_114_, float[] fs, int i_115_);

	public static native void glTexParameterf(int i, int i_116_, float f);

	public static native void glTexParameteri(int i, int i_117_, int i_118_);

	public static native void glGetTexImagei(int i, int i_119_, int i_120_, int i_121_, int[] is, int i_122_);

	public static native void glGetTexImageub(int i, int i_123_, int i_124_, int i_125_, byte[] is, int i_126_);

	public static native float glGetTexLevelParameterfv(int i, int i_127_, int i_128_);

	public static native int glGetTexLevelParameteriv(int i, int i_129_, int i_130_);

	public static native void glGetTexImage(int i, int i_131_, int i_132_, int i_133_, byte[] is);

	public static native void glTexImage1Dub(int i, int i_134_, int i_135_, int i_136_, int i_137_, int i_138_, int i_139_, byte[] is, int i_140_);

	public static native void glCopyTexImage2D(int i, int i_141_, int i_142_, int i_143_, int i_144_, int i_145_, int i_146_, int i_147_);

	public static native void glCopyTexSubImage2D(int i, int i_148_, int i_149_, int i_150_, int i_151_, int i_152_, int i_153_, int i_154_);

	public static native void glTexImage2Di(int i, int i_155_, int i_156_, int i_157_, int i_158_, int i_159_, int i_160_, int i_161_, int[] is, int i_162_);

	public static native void glTexImage2Df(int i, int i_163_, int i_164_, int i_165_, int i_166_, int i_167_, int i_168_, int i_169_, float[] fs, int i_170_);

	public static native void glTexImage2Dub(int i, int i_171_, int i_172_, int i_173_, int i_174_, int i_175_, int i_176_, int i_177_, byte[] is, int i_178_);

	public static native void glTexSubImage2Di(int i, int i_179_, int i_180_, int i_181_, int i_182_, int i_183_, int i_184_, int i_185_, int[] is, int i_186_);

	public static native void glTexSubImage2Df(int i, int i_187_, int i_188_, int i_189_, int i_190_, int i_191_, int i_192_, int i_193_, float[] fs, int i_194_);

	public static native void glTexSubImage2Dub(int i, int i_195_, int i_196_, int i_197_, int i_198_, int i_199_, int i_200_, int i_201_, byte[] is, int i_202_);

	public static native void glCopyTexSubImage3D(int i, int i_203_, int i_204_, int i_205_, int i_206_, int i_207_, int i_208_, int i_209_, int i_210_);

	public static native void glTexImage3Dub(int i, int i_211_, int i_212_, int i_213_, int i_214_, int i_215_, int i_216_, int i_217_, int i_218_, byte[] is, int i_219_);

	public static native void glCompressedTexImage2Dub(int i, int i_220_, int i_221_, int i_222_, int i_223_, int i_224_, int i_225_, byte[] is, int i_226_);

	public static native void glCopyPixels(int i, int i_227_, int i_228_, int i_229_, int i_230_);

	public static native void glReadPixelsi(int i, int i_231_, int i_232_, int i_233_, int i_234_, int i_235_, int[] is, int i_236_);

	public static native void glReadPixelsub(int i, int i_237_, int i_238_, int i_239_, int i_240_, int i_241_, byte[] is, int i_242_);

	public static native void glDrawPixelsi(int i, int i_243_, int i_244_, int i_245_, int[] is, int i_246_);

	public static native void glDrawPixelsub(int i, int i_247_, int i_248_, int i_249_, byte[] is, int i_250_);

	public static native void glPixelZoom(float f, float f_251_);

	public static native void glPixelStorei(int i, int i_252_);

	public static native void glPixelTransferf(int i, float f);

	public static native void glColorMaterial(int i, int i_253_);

	public static native void glLightf(int i, int i_254_, float f);

	public static native void glLightfv(int i, int i_255_, float[] fs, int i_256_);

	public static native void glLightModelfv(int i, float[] fs, int i_257_);

	public static native void glMaterialfv(int i, int i_258_, float[] fs, int i_259_);

	public static native void glFogi(int i, int i_260_);

	public static native void glFogf(int i, float f);

	public static native void glFogfv(int i, float[] fs, int i_261_);

	public static native void glBlendFunc(int i, int i_262_);

	public static native void glBlendFuncSeparate(int i, int i_263_, int i_264_, int i_265_);

	public static native void glBlendColor(float f, float f_266_, float f_267_, float f_268_);

	public static native void glGenFramebuffersEXT(int i, int[] is, int i_269_);

	public static native void glDeleteFramebuffersEXT(int i, int[] is, int i_270_);

	public static native void glBindFramebufferEXT(int i, int i_271_);

	public static native void glFramebufferTexture2DEXT(int i, int i_272_, int i_273_, int i_274_, int i_275_);

	public static native void glFramebufferTexture3DEXT(int i, int i_276_, int i_277_, int i_278_, int i_279_, int i_280_);

	public static native void glFramebufferRenderbufferEXT(int i, int i_281_, int i_282_, int i_283_);

	public static native int glCheckFramebufferStatusEXT(int i);

	public static native void glBlitFramebufferEXT(int i, int i_284_, int i_285_, int i_286_, int i_287_, int i_288_, int i_289_, int i_290_, int i_291_, int i_292_);

	public static native void glGenerateMipmapEXT(int i);

	public static native void glGenRenderbuffersEXT(int i, int[] is, int i_293_);

	public static native void glDeleteRenderbuffersEXT(int i, int[] is, int i_294_);

	public static native void glBindRenderbufferEXT(int i, int i_295_);

	public static native void glRenderbufferStorageEXT(int i, int i_296_, int i_297_, int i_298_);

	public static native void glRenderbufferStorageMultisampleEXT(int i, int i_299_, int i_300_, int i_301_, int i_302_);

	public static native int glGenProgramARB();

	public static native void glDeleteProgramARB(int i);

	public static native void glBindProgramARB(int i, int i_303_);

	public static native void glProgramStringARB(int i, int i_304_, String string);

	public static native void glProgramRawARB(int i, int i_305_, byte[] is);

	public static native void glProgramLocalParameter4fARB(int i, int i_306_, float f, float f_307_, float f_308_, float f_309_);

	public static native void glProgramLocalParameter4fvARB(int i, int i_310_, float[] fs, int i_311_);

	public static native void glGetProgramivARB(int i, int i_312_, int[] is, int i_313_);

	public static native int glCreateProgram();

	public static native int glCreateShader(int i);

	public static native void glDeleteProgram(int i);

	public static native void glDeleteShader(int i);

	public static native void glShaderSource(int i, String string);

	public static native void glCompileShader(int i);

	public static native void glAttachShader(int i, int i_314_);

	public static native void glDetachShader(int i, int i_315_);

	public static native void glLinkProgram(int i);

	public static native void glUseProgram(int i);

	public static native int glGetUniformLocation(int i, String string);

	public static native void glUniform1i(int i, int i_316_);

	public static native void glUniform1f(int i, float f);

	public static native void glUniform2f(int i, float f, float f_317_);

	public static native void glUniform3f(int i, float f, float f_318_, float f_319_);

	public static native void glUniform4f(int i, float f, float f_320_, float f_321_, float f_322_);

	public static native void glUniform1fv(int i, int i_323_, float[] fs, int i_324_);

	public static native void glUniform2fv(int i, int i_325_, float[] fs, int i_326_);

	public static native void glUniform3fv(int i, int i_327_, float[] fs, int i_328_);

	public static native void glUniform4fv(int i, int i_329_, float[] fs, int i_330_);

	public static native void glUniformMatrix2fv(int i, int i_331_, boolean bool, float[] fs, int i_332_);

	public static native void glUniformMatrix3fv(int i, int i_333_, boolean bool, float[] fs, int i_334_);

	public static native void glUniformMatrix4fv(int i, int i_335_, boolean bool, float[] fs, int i_336_);

	public static native void glGetProgramiv(int i, int i_337_, int[] is, int i_338_);

	public static native void glGetShaderiv(int i, int i_339_, int[] is, int i_340_);

	public static native void glGetProgramInfoLog(int i, int i_341_, int[] is, int i_342_, byte[] is_343_, int i_344_);

	public static native void glGetShaderInfoLog(int i, int i_345_, int[] is, int i_346_, byte[] is_347_, int i_348_);

	public static native int glGetError();

	public static native String glGetString(int i);

	public static native void glGetFloatv(int i, float[] fs, int i_349_);

	public static native void glGetIntegerv(int i, int[] is, int i_350_);

	public static native void glStencilFunc(int i, int i_351_, int i_352_);

	public static native void glStencilOp(int i, int i_353_, int i_354_);

	public static native long glFenceSync(int i, int i_355_);

	public static native boolean glIsSync(long l);

	public static native void glDeleteSync(long l);

	public static native int glClientWaitSync(long l, int i, int i_356_);

	public static native void glWaitSync(long l, int i, int i_357_);

	public synchronized boolean method2579() {
		Thread thread = Thread.currentThread();
		if (attachPeer()) {
			OpenGL opengl_358_ = (OpenGL) aHashtable1824.put(thread, this);
			if (opengl_358_ != null)
				opengl_358_.aThread1823 = null;
			aThread1823 = thread;
			return true;
		}
		return false;
	}

	public synchronized boolean method2580() {
		if (aThread1823 != Thread.currentThread())
			return false;
		detachPeer();
		aHashtable1824.remove(aThread1823);
		aThread1823 = null;
		return true;
	}

	public synchronized boolean method2581() {
		if (aThread1823 != Thread.currentThread())
			return false;
		detachPeer();
		aHashtable1824.remove(aThread1823);
		aThread1823 = null;
		return true;
	}

	public synchronized boolean method2582() {
		if (aThread1823 != Thread.currentThread())
			return false;
		detachPeer();
		aHashtable1824.remove(aThread1823);
		aThread1823 = null;
		return true;
	}

	public synchronized boolean method2583() {
		if (aThread1823 != Thread.currentThread())
			return false;
		detachPeer();
		aHashtable1824.remove(aThread1823);
		aThread1823 = null;
		return true;
	}

	public synchronized boolean method2584() {
		if (aThread1823 != Thread.currentThread())
			return false;
		detachPeer();
		aHashtable1824.remove(aThread1823);
		aThread1823 = null;
		return true;
	}
}
